Skip to content

fix(conformance): correct sixteen PDF/A clause citations - #445

Merged
Tim81 merged 11 commits into
mainfrom
fix/derive-pdfa2-rules-from-iso-text
Sep 9, 2026
Merged

Tim81 merged 11 commits into
mainfrom
fix/derive-pdfa2-rules-from-iso-text

Conversation

@Tim81

@Tim81 Tim81 commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

Corrects sixteen wrong clause citations across four source files, adds a way to measure coverage against the standard rather than against veraPDF, and rewrites two rule justifications that described the tool instead of the clause. Refs #418.

No predicate, scope, tolerance or severity changes. Four emitted strings move — the rule id, the clause string, one diagnostic message and one exception message — and one reporting bug is fixed as a consequence. All are described below.

Sixteen wrong clause citations, and what they were hiding

FontEmbeddingRule cited ISO 19005-2 §6.3.4–§6.3.5 for font embedding in four places: its summary, its remarks, its RuleId and its Clause, mirrored again in the CLI README that documents the emitted output. Clause 6.3 of ISO 19005-2 is Annotations: its sub-clauses stop at 6.3.4, "Display of annotation contents", and 6.3.5 does not exist at all. Those are ISO 19005-1 numbers, where 6.3 is Fonts. Embedding is §6.2.11.4.1. The rule now emits ISO19005-2:6.2.11.4.1-font-embedding, so a caller matching the old id or clause string will see the new one.

PdfConformance carried three more of the same kind in one doc block, and PdfDocument repeated one.

It took three passes to find the rest, each prompted by a reviewer observing that the one before had stopped short. Eight more survive in PdfDocument and SrgbIccProfile:

  • Three said §6.3.1, Annotation types, for the /Encrypt prohibition that lives in §6.1.3, File trailer. One of those is the message of the InvalidOperationException raised when Save() is asked to encrypt a PDF/A file, so it is a citation a caller actually reads. AnnotationRule uses §6.3.1 correctly for forbidden annotation subtypes, so before this the release contradicted itself.
  • Five said §6.2.2, Content streams, for the output intent in §6.2.3. Two of those also called the output intent required at every conformance level, where §6.2.4.3 makes it conditional on the file using uncalibrated device colour.

What the wrong clause string was hiding

vellum-preflight reconciles a descriptive rule id against the catalogue by clause, and 6.3.4 matched no catalogue entry while 6.2.11.4.1 matches two. On a file that fails font embedding, those two checks were reported as passed. Measured on GoldenTests.StandardFont_rawBytes.verified.pdf at profile 2b: passed falls 132 to 130, inconclusive rises 9 to 11, and the two that move are 6.2.11.4.1-1 and -2. That is the honesty failure ClausePassedHonestyTests exists to prevent.

Coverage measured against the standard, not against the validator

Measuring coverage against a validator's test ids quietly makes that validator the population. A requirement neither side checks cannot appear in any comparison between them, because both agree by omission and the diff is silent.

eng/data/iso19005-2-clauses.yml lists every clause of clause 6 by number and heading, and eng/clause-coverage.py reports what checks each one. Against the standard's own list, 19 of the 73 file-scoped clauses are checked by neither this library nor veraPDF, seven of them at the accessibility level this library advertises. Clauses that bind a conforming reader rather than a conforming file are marked and excluded, so a missing rule against one of those is not counted as a gap. Two clauses that carry no requirement of their own are excluded too, and the report names every excluded clause, because one dropped silently is the failure this tool exists to prevent. Without a veraPDF jar the tool says so and reports the 20 clauses no rule cites, rather than counting every clause as one veraPDF does not check.

The inventory holds clause numbers and headings only. No normative text is reproduced.

Two justifications that described the tool

ActionRule asserted both that it was "derived from the specification text, not from any third-party validation profile" and that "the clause is an allow-list", while a comment a hundred lines below justified its null-/S branch by describing veraPDF's test. §6.5.1 is written as three prohibitions. What makes the seven-type allow-list correct is §5.1, which permits any valid ISO 32000-1 feature the standard does not forbid: subtract the eleven types §6.5.1 forbids from the eighteen ISO 32000-1 Table 198 enumerates and exactly those seven remain, so for every type the base standard defines the two formulations agree. They part company only for a type it does not define, which the rule rejects, correctly, because §5.1 permits valid base-standard features and a vendor /S is not one.

A2aContentItemTaggingRule reported a warning because veraPDF's profile lacks the check, and said so to the caller in the diagnostic message. §6.7.3.3 carries one shall, for a hierarchy rooted in StructTreeRoot, and one should, for capturing it to the finest granularity. Reporting a recommendation is what makes warning the right severity. The message no longer names a tool, and now says what to do about the finding rather than only how to make the build fail on it. A conformance message should describe the document. That is the second emitted-output change.

Severities, rule ids and predicates are otherwise untouched.

What came out of this PR, and why

It originally also implemented the §6.2.11.4.1 text-rendering-mode-3 exemption. Three reviewers found seven defects in it, each with a working reproducer, and the pattern mattered more than the count: the content scan cannot see everything, and the exemption read absence as evidence. Four such holes were closed and five more were found.

That work is preserved on feat/mode3-exemption and specified in #458, with the reviewers' findings as acceptance criteria and the design constraint they point to — an unrecognised construct must default to reporting, not to exempting. Row D4 of docs/conformance-divergences.md therefore still describes the defect, with a pointer to #458 added.

Divergence document

One row is removed, because with ActionRule's prose corrected nothing about that rule diverges any more, and this file's own convention is that a row comes out when the disagreement is gone. One row is rewritten: the tagging severity's justification is fixed, and its row stays because the check itself still has no counterpart in veraPDF's profile. The note about the clause inventory being "in progress" is corrected, since it lands here.

Verification

Locally, with VERAPDF_HOME set and REQUIRE_ORACLES=1 so a missing oracle fails rather than skips: conformance 1300, kernel 1398, CLI 908, all zero failed and zero skipped. Build clean under warnings-as-errors, and dotnet format --verify-no-changes, the clean-room check and the generated-inventory --check all pass.

What is not claimed

ISO 19005-2 is readable through a licensed single-user viewer and is not held as a file, so its citations here were verified by a person, on 2026-09-08 and again on 2026-09-09 for the ones found later, and are not reproducible by CI or from a clone. The clause inventory can check that a cited clause id exists; nothing can check that a predicate implements a requirement. The ISO 32000-1 citations are checkable against the held copy.

Also fixed in review

eng/clause-coverage.py --json, a documented mode of the tool this branch adds, crashed unconditionally: the clause inventory's read_on was an unquoted YAML date, so PyYAML produced a datetime.date that json.dumps refuses. Three review passes read the script and none ran that flag, and nothing in CI runs the script at all.

Round four

Three reviewers on disjoint lenses, five findings at medium. Two were settleable only by running something.

src/VellumPdf.Cli/README.md still showed "passed": 132, "inconclusive": 9 in its sample output, which is the state before this branch, two lines above a failed array this same hunk had updated to the new rule id. Measured on the fixture rather than inferred: 130 and 11. That README ships to nuget.org.

docs/architecture.md carried the veraPDF-mention count the generated inventory moves from 50 to 49. Nothing regenerates that file, so no gate would have caught it.

FontEmbeddingRule's summary states the clause's obligation while the rule is stricter than it: §6.2.11.4.1 NOTE 2 exempts a font drawn only in text rendering mode 3 and nothing here implements that. The same remarks block already discloses the Tf-only scope under #118 and the unreached content streams under #450, so leaving this one undisclosed was inconsistent within a single comment. It now cites #458.

docs/conformance-divergences.md described the coverage tool's degraded mode backwards. Run both ways, the gap it reports without a veraPDF jar is larger, not smaller. The claim that a clone can recompute the figure is now qualified to a clone that has a jar.

The clause inventory scoped 6.6.1 and 6.7.1 as containers, which its own key defines as a heading whose children carry the requirements. Neither has children, and they were the only two of ninety-seven like that, so both fell out of every published count without appearing anywhere. 6.7.1 was read on 2026-09-07 and states which files subclause 6.7 applies to; it gets a scope that says that. 6.6.1 was not read, and now says so rather than borrowing a classification. The report names both. The 19 of 73 figure is unchanged.

Below medium: the diagnostic now leads with the two things that fix the finding and is remeasured at 408 characters, which moves the figure PreflightContext cites for its message cap; ActionRule anchors its subtraction on Table 198 rather than on §12.6.4, which specifies only fifteen of the eighteen types; the PdfConformance encryption bullet no longer reads as covering PdfUA1, which Save permits; EnumerateUsedFonts cites #450 where one of its ten callers already did; and the coverage report marks a clause that binds two conformance levels and discloses the generosity of its profile-side scrape as well as its rule-side one.

…ause

FontEmbeddingRule cited ISO 19005-2 §6.3.4–§6.3.5 for font embedding, in its
summary, its RuleId and its Clause property. Clause 6.3 of ISO 19005-2 is
Annotations; its four sub-clauses end at 6.3.4, "Display of annotation
contents", and there is no 6.3.5. Those are ISO 19005-1 numbers, where 6.3 is
Fonts. Embedding is §6.2.11.4.1.

That matters beyond tidiness. The rule carried the standard sentence claiming
derivation from the specification text, which cannot be true of a clause number
borrowed from a different part of ISO 19005. A wrong number is also a fingerprint
of where the rule actually came from.

The rule id and clause string are emitted, so this changes output a caller can
match on. veraPDF's PDF/A-2 profile already keys the same requirement to
6.2.11.4.1, so the correction moves toward it rather than away.

PdfConformance carried three more of the same kind in one doc block: font
embedding at §6.3.3, the /Encrypt prohibition at §6.3.1 and the output intent at
§6.2.2, which are Annotation appearances, Annotation types and Content streams.
PdfDocument repeated the §6.3.3 claim.

The same block now states what each clause requires rather than only naming it,
including two things easy to get wrong: font embedding is scoped to fonts used
for rendering and exempts text rendering mode 3, and the output intent is
conditional on device colour spaces under §6.2.4.3 rather than unconditional.

Every replacement clause was read in ISO 19005-2 before it was written.

Refs #418.
…eraPDF

Coverage has been measured against veraPDF's test ids, which quietly makes the
profile the population. A requirement that neither veraPDF nor this library
checks cannot surface in any comparison between the two: they agree by omission
and the diff stays silent. A differential harness inherits the intersection of
its implementations' blind spots.

This makes the standard's own clause list the population instead. Against it,
19 of the 73 file-scoped clauses in clause 6 are checked by neither. Seven are
Level A accessibility requirements: alternate descriptions, non-textual
annotations, replacement text, expansions of abbreviations and acronyms, word
boundaries, artefact specification and the Tagged PDF general clause. One clause
veraPDF checks is uncited here, 6.2.11.7.3, and one we check has no veraPDF rule,
6.6.5 File identifiers.

The inventory carries clause numbers and headings only. The standard is not held
as a file and is not transcribed here; it was read clause by clause through a
licensed viewer, so these entries are verified by a person and not reproducible
by CI or from a clone.

Clauses that bind a conforming reader rather than a conforming file are marked
and excluded from the checkable population. 6.5.3, 6.3.4, 6.1.5 and 6.2.8.2 all
constrain reader behaviour, so no rule is missing for them. Without that
distinction four correct absences would read as gaps.

Detection of what we already check is deliberately generous: any clause token in
a rule file that cites ISO 19005-2 counts, so a rule citing a parent clause is
credited with it. That keeps the gap list conservative.

The report degrades rather than lies when veraPDF is absent: it says the profiles
are unavailable and reports the clauses as uncited rather than as unchecked.

Refs #418.
… tool

ActionRule's remarks asserted both that the rule was "derived from the
specification text, not from any third-party validation profile" and that
"the clause is an allow-list". The second sentence is false and the two
contradict each other, since a comment a hundred lines below justified the
null-/S branch by describing veraPDF's test.

ISO 19005-2 6.5.1, read through a licensed viewer on 2026-09-08, is written as
three prohibitions. The seven-type allow-list is still correct, but 5.1 is what
makes it so: it permits any valid ISO 32000-1 feature the standard does not
explicitly forbid, and subtracting the eleven types 6.5.1 forbids from
ISO 32000-1 12.6.4 leaves exactly those seven. The two formulations part company
only for a type ISO 32000-1 does not define, which the rule rejects, correctly,
because 5.1 permits valid base-standard features and a vendor /S value is not
one. The remarks now say that, and keep an honest sentence recording that an
earlier version took its shape from a profile instead.

The same remarks called AcroForm field-tree /AA "deferred". InteractiveFormRule
walks that tree and reports it. 6.4.1 forbids the A and AA keys on a Widget
annotation or Field dictionary and 6.5.2 separately forbids AA on four
dictionaries including those two, so the clauses overlap and that rule's 6.4.1
citation is right. The sentence now points at it rather than implying a gap.

A2aContentItemTaggingRule is registered as a Warning because 6.7.3.3 has one
shall, for a StructTreeRoot-rooted hierarchy, and one should, for capturing the
hierarchy to the finest granularity possible. Reporting a recommendation is what
makes Warning correct, not agreement with a tool that implements no equivalent.
Its diagnostic message no longer names veraPDF to the caller; a conformance
message should describe the document.

No behaviour changes: no predicate, scope, tolerance, severity, rule id or
clause string moves. The generated provenance count in docs/pdf20-conformance.md
falls from 50 to 49 rule classes that both claim clean-room derivation and name
veraPDF, which is the count doing its job.

Refs #418.
Three of its five rows described defects the two commits before this one fixed,
so the file shipped a claim the tree no longer supported. That is the same
failure the file exists to catch, arriving from the other direction: prose going
stale against its own branch.

D3, the allow-list framing in ActionRule, is removed. Its divergence was never
behavioural, and with the remarks rewritten nothing about that rule disagrees
with veraPDF any more. This file's own convention is that a row comes out when
the disagreement is gone, and that removing it is a claim, so it belongs in the
same change that closes it.

D4 and D5 keep their rows because a narrower disagreement remains in each, and
both are rewritten to say what it is. For font embedding: the rendering-mode-3
exemption now exists, and what still diverges is that veraPDF exempts every
composite font outright while this library follows /DescendantFonts, and that
this library suppresses the exemption when a page can reach a content stream the
scan does not read. D4 also recorded UaFontEmbeddingRule as the pattern to copy,
including its treatment of an undetermined rendering mode; this library
deliberately did the opposite and requires a confirmed mode 3, so the row now
says why and notes the PDF/UA-1 rule still has that hole. For the tagging
severity: the justification is corrected, and the check itself still diverges
because veraPDF's PDF/A-2a profile carries no equivalent.

Two smaller staleness fixes. The clause inventory and coverage script are no
longer "being added"; they are in this branch, so a clone can recompute the
19-of-73 figure rather than taking it as a snapshot. And the CHANGELOG entry
introducing the file counted five rows.

Refs #418.
…wept

Three reviewers on this branch found that the citation fix stopped short. Six
more citations of exactly the kind it corrected survive in PdfDocument and
SrgbIccProfile, and one of them is in a thrown exception message a caller reads.

ISO 19005-2 6.3.1 is Annotation types, not the /Encrypt prohibition, which is
6.1.3 File trailer. Three places said 6.3.1: a comment, an XML doc, and the
InvalidOperationException raised when Save() is asked to encrypt a PDF/A file.
AnnotationRule already uses 6.3.1 correctly for forbidden annotation subtypes,
so before this the release contradicted itself and the wrong one was the string
a user sees.

ISO 19005-2 6.2.2 is Content streams, not the output intent, which is 6.2.3.
Three more places said 6.2.2. One of them also called the output intent
"required for all conformance levels"; 6.2.4.3 makes it conditional on the file
using uncalibrated device colour, which is what this branch's own PdfConformance
text now says.

Also trims that PdfConformance doc block. Rewriting it to say what each clause
requires had pushed it into several consecutive paragraphs of ISO 19005-2
rendered in the standard's own register — the ICC profile classes and colour
models, the %%EOF trailing-data rule, an ISO 32000-1 cross-reference — in a
public XML doc, for a standard this repository does not hold and may not
transcribe. Each entry is now this project's own statement of the obligation
plus what the library does about it.

One sentence came out for a second reason. It promised that a font drawn only in
text rendering mode 3 is exempt from embedding. That correction has moved to its
own branch, so leaving the promise here would recreate exactly the contradiction
between a public claim and the rule's behaviour that this work exists to remove.

Refs #418.
@Tim81
Tim81 force-pushed the fix/derive-pdfa2-rules-from-iso-text branch from e684e8e to ffa3986 Compare September 9, 2026 06:03
@Tim81 Tim81 changed the title fix(conformance): re-derive font embedding from ISO 19005-2, and correct what cited the tool fix(conformance): correct eleven PDF/A clause citations, and derive two justifications from the clause Sep 9, 2026
… its scope

A third review pass found the second one had also stopped short. Two more
citations said ISO 19005-2 6.2.2, Content streams, for the output intent that
lives in 6.2.3: the comment above BuildOutputIntents and the one on the signing
path. The first also said an /OutputIntents array is "required for all PDF/A-2
conformance levels", which is the same unconditional claim corrected 500 lines
below in the same file. 6.2.4.3 is what makes an output intent mandatory, and
only when the file uses uncalibrated device colour; emitting one regardless
satisfies that without detecting device colour use, which is now what the
comment says.

That makes sixteen wrong citations across four files, found over three passes.
Recording that because the pattern is the point: each pass corrected what it
had looked at and left the rest, and only a reader coming fresh to the file
noticed the remainder.

Also corrects things the same review found in prose rather than code.

The CHANGELOG said the enum's doc block had four wrong clause numbers. It had
three; the other bullets carried no number at all.

The enum's opening said "setting a non-None value instructs VellumPdf to" and
then described the pdfaid schema. PdfUA1 is also non-None and gets pdfuaid, so
the list now says which values it covers.

The divergence file's tagging row still present-tensed a RuleRegistry comment
this branch had already replaced, two paragraphs before switching to the past
tense about the same sentence. Its heading named a defect that is fixed. Both
now describe what the tree holds. The font-embedding row gains a pointer to
#458, which specifies the correction that came out of this branch.

clause-coverage.py claimed it finds the veraPDF jar "via VERAPDF_HOME, PATH, or
the conventional home directory". It never looks on PATH, and should not: CI
resolves veraPDF by bare name through a Docker shim that keeps the jar inside
the container, so finding the executable would say nothing about whether its
profiles are readable. The docstring now says that.

One emitted-output change was undisclosed. Correcting FontEmbeddingRule's Clause
also changes what vellum-preflight reports, because it reconciles a descriptive
rule id against the catalogue by clause: 6.3.4 matched no catalogue entry while
6.2.11.4.1 matches two. Measured on GoldenTests.StandardFont_rawBytes.verified.pdf
at profile 2b, passed falls from 132 to 130 and inconclusive rises from 9 to 11,
the two that move being 6.2.11.4.1-1 and -2. That file fails font embedding, so
those checks were being reported as passed on a document that fails the very
clause they name. It is the honesty failure ClausePassedHonestyTests exists to
prevent, and a wrong clause string was hiding it.

Refs #418.
@Tim81 Tim81 changed the title fix(conformance): correct eleven PDF/A clause citations, and derive two justifications from the clause fix(conformance): correct sixteen PDF/A clause citations, and derive two justifications from the clause Sep 9, 2026
… claims

--json has never emitted anything. read_on in the clause inventory is an
unquoted YAML date, so PyYAML yields a datetime.date and json.dumps refuses it
with a TypeError before any output is written. The flag is advertised in the
script's own usage text and in argparse help, and the divergence document points
readers at the script, so this is a documented mode that has never run. Quoting
the date fixes it; the quote carries a comment saying why, because an editor
tidying it away would break the mode again silently.

Worth recording how it survived. Three review passes read this script and none
executed that flag, and nothing in CI runs the script at all. The generated
inventory has a --check gate; this one has nothing.

The same commit repairs a sentence a previous fix truncated: the usage text read
"without it column is reported as unavailable", having lost "the veraPDF" while
the PATH claim beside it was being corrected.

Three prose claims no longer matched the tree.

The divergence file said its non-gated rows "are not gated, because fixing them
moves toward the tool rather than away from it". That was true of both rows
before this branch. It is not now: one is corrected already and what remains of
it is a check veraPDF's profile does not carry at all.

That row also said its evidence was "the registry comment, yes" while quoting a
RuleRegistry comment this branch deleted. A reader with only the working tree
cannot confirm a sentence that is no longer in it. The evidence is the profile,
which is in the veraPDF jar and checkable.

And PdfConformance's list opener, reworded earlier so it would not imply that
PdfUA1 gets a pdfaid schema, had become ungrammatical against its own items.

Finally the citation bullet opened with "Five PDF/A clause citations" and then
described sixteen of them across four files, a count that had grown twice since
the sentence was written.

Refs #418.
The branch rewrote RuleRegistry, A2aContentItemTaggingRule's remarks and the
message a caller reads, so that the Warning severity rests on ISO 19005-2
6.7.3.3 stating granularity as a should rather than a shall. Three comments in
the test project still gave the old reason, in causal terms:

  OracleCorpus said the rule "reports it as a Warning precisely so that
  IsCompliant continues to agree with veraPDF here".

  A2aContentItemTaggingRuleTests said the rule is "deliberately a warning so
  that it does agree", and called that "the whole point of the severity choice".

Every operational statement around them is still true — veraPDF does report the
fixture compliant, and the fixture is a real guard on that agreement — so no
test was wrong. What was wrong is the causation, stated in the words this branch
went and deleted elsewhere. The tree carried two contradictory answers to the
same question, and a maintainer reading the tests got the discredited one.
Agreement with the tool is now described as a consequence of the severity rather
than its reason, and the guard is described as still worth having.

Three smaller corrections from the same review.

The citation bullet claimed sixteen and itemised fifteen: it named three of
FontEmbeddingRule's four sites and omitted the remarks line. The paragraph is
rewrapped programmatically rather than by hand, because hand-splicing it has now
produced an orphan line three times, most recently while fixing the count.

Worth recording, since it wasted a check: awk's length() counts bytes, so the
section signs and en dashes in this file make compliant lines look over-long.
The wrap was verified in characters.

And clause-coverage.py's usage text described the veraPDF "column" being
reported as unavailable. The report has labelled sections and a counts line, no
columns. It now says what actually happens, which is that it says the profiles
are unavailable rather than counting every clause as one veraPDF does not check.

Refs #418.
FontEmbeddingRule said veraPDF was consulted only to confirm the corrected
clause number, which is oracle use rather than a source. Ten lines below, the
scoping paragraph says the Tf-only rule matches veraPDF and cites #118, which
is a source. Both statements are true of different things, and the first read
as a claim about the whole rule. It is now scoped to this re-derivation, with
the #118 parity stated plainly as still-open work under #418 rather than left
to be discovered further down. The same rule called the fonts it cannot see,
those used only inside form XObjects, Type 3 glyph procedures and annotation
appearance streams, a deferred edge without saying who defers them. They are
#450.

PreflightContext justified MaxMessageChars = 1024 as roughly twice the longest
message any rule composes, 522 characters in A2aContentItemTaggingRule. That
message was shortened in this same branch. Both were measured: the old one was
522 exactly and the new one is 396, so the stated multiple no longer held. The
comment now gives the measured figure and says what changed it.

ActionRule referred to "the eleven action types the summary names", which makes
the summary the authority for a count the clause fixes. It names the clause
instead. The paragraph is rewrapped to the file's own width.

The docstring in clause-coverage.py described the veraPDF-keyed measurement in
the present tense, next to the paragraph explaining that this script replaces
it, and a CHANGELOG bullet had a one-word orphan line from an earlier edit.

Refs #418.
@Tim81 Tim81 changed the title fix(conformance): correct sixteen PDF/A clause citations, and derive two justifications from the clause fix(conformance): correct sixteen PDF/A clause citations Sep 9, 2026
Round four. Two of the five were caught only by running something.

The CLI README's sample output still showed passed 132 and inconclusive 9.
Those are the figures from before this branch, and the same branch's CHANGELOG
says the run now gives 130 and 11. Measured on the fixture the CHANGELOG names
rather than reasoned about: 130 and 11. That README ships to nuget.org.

docs/architecture.md carries the same veraPDF-mention count the generated
inventory moves from 50 to 49. Nothing regenerates architecture.md, so no gate
would ever have caught it.

FontEmbeddingRule's summary states the clause's obligation, embed the fonts
used for rendering. The rule is stricter than that: NOTE 2 exempts a font drawn
only in text rendering mode 3 and nothing here implements it. The same remarks
block discloses two other limits and cites their issues, so leaving this one
undisclosed was inconsistent inside a single comment. It now says so and cites
#458.

The divergence file described the coverage tool's degraded mode backwards. It
said the tool avoids reporting a smaller gap when no veraPDF jar is reachable.
Run both ways, the degraded number is larger: 19 clauses checked by neither
with a jar, 20 clauses cited by no rule without one. The sentence also promised
that a clone can recompute the figure, which is true only of a clone that has a
jar.

The clause inventory scoped 6.6.1 and 6.7.1 as containers, which its own key
defines as a heading whose children carry the requirements. Neither has
children, and they were the only two of ninety-seven like that, so both were
dropped from every published count without appearing anywhere. 6.7.1 was read
on 2026-09-07 and states which files subclause 6.7 applies to, so it gets a
scope that says that. 6.6.1 was not read, and now says so rather than borrowing
a classification. The report names both at the end, because a clause dropped
from the population without being named is the failure this tool exists to
prevent. The published 19 of 73 is unchanged.

Smaller things the same reviewers found. The diagnostic a caller reads named
the two conditions it checked but never the two things that fix them, and spent
two of its three sentences on this tool rather than on the document; it now
leads with the remedy, and is remeasured at 408 characters, which moves the
figure PreflightContext cites for its message cap. ActionRule anchored its
subtraction on ISO 32000-1 12.6.4, which specifies only fifteen of the eighteen
types, where Table 198 enumerates all eighteen and is what makes the argument
checkable against the held copy. The PdfConformance bullet on encryption read
as covering PdfUA1, which Save permits. EnumerateUsedFonts still called its
blind spot a deferred edge naming no issue, while one of its ten callers had
been updated to cite #450. The coverage report printed a clause binding two
conformance levels with no marker at all, and disclosed the generosity of its
rule-side scrape but not of its profile-side one.

Refs #418.
The verification pass on the round-four fixes came back clean, with two
loose ends.

Two of the ten callers of EnumerateUsedFonts still described its blind spot
as a deferred edge naming no issue, which is the wording the same round
replaced in the helper itself and in FontEmbeddingRule. FontStructureRule and
ToUnicodeRule now cite #450 like the rest.

The clause inventory's header says every entry was read clause by clause and
verified by a person, while one entry in the same file now records that its
scope was not settled in that session. The heading was read; the scope was
not. The header says which.

Three smaller ones. FontEmbeddingRule called itself stricter than the clause
without qualification, in a comment that goes on to describe two ways it
under-detects, so it now says stricter in one direction. The CHANGELOG entry
for the coverage tool named the reader-scope exclusion where the report now
excludes and names three kinds. And the font-embedding entry had grown a
114-character line.

Refs #418.
@Tim81
Tim81 merged commit d95fadf into main Sep 9, 2026
5 checks passed
@Tim81
Tim81 deleted the fix/derive-pdfa2-rules-from-iso-text branch November 21, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant