Files
wordcraft/crates/validate/observation-contracts.md
T
5e129ac951 Validate: add wordcraft validate, a structural integrity checker for .docx (#5875)
* Validate: add wordcraft-validate, a structural integrity checker for .docx (#5848)

* Validate: harden verdict integrity against unavailable package content

Follow-up to the CodeRabbit review round. The contract throughout:
a check that could not run must not report as though it did, and
content that could not be read must not be treated as absent.

- Unreadable zip entries keep their identity (from the zip reader's
  own metadata) and are marked content-unavailable; every absence-
  dependent error is suppressed while any part's identity or content
  is unknown, and the run reports INCOMPLETE instead of a FAIL
  manufactured from missing data.
- The same guard now covers the typed-relationship, image-reference,
  custom-XML schema, comment/note-reference and numbering checks,
  in both owner scopes.
- Scan finalisation splits prefix-established findings (always
  reported) from completion-dependent ones (gated on a complete
  scan); duplicate checking marks INCOMPLETE when the entries
  budget leaves raw directory records unexamined, and when the
  central directory cannot be parsed at all.
- CLI: surplus operands are a usage error before any file is
  validated; non-Unicode paths validate normally; report output
  escaping audited.
- Corpus generators fixed (vMerge/gridSpan, commentsExtended
  paraId, pinned zip timestamps, fixture 23 isolation); corpus and
  calibration fixtures regenerated.

Seventeen new tests, each mutation-checked. One residual recorded
in the PR discussion: a readable-but-unparseable commentsExtended
part can still draw unsupported COMMENTEX-LINK warnings (Warning
severity only; cannot change a verdict).

* Validate: add docstrings across validator and corpus functions (#5875)

* Validate: document the budget tests; correct a coverage note's identifier name

The budget-exhaustion tests in the lib.rs test module were the remaining
undocumented functions of any complexity on the branch. Each now carries
a docstring stating the contract it pins.

Also corrects the read_comments_ids budget note: the values it records
are w16cid:paraId values, so the note now says 'later paraIds were not
recorded' instead of 'durableIds'.

* Validate PR 2 step 0: content-model tables and generated model.rs

Add the ECMA-376 content-model tables the grammar checks will read, and
the deterministic chain that produces them:

- crates/validate/model/: the v2 (namespace-qualified) extractor, the
  WML and DrawingML tables for Strict and Transitional, generate_model.py
  (JSON -> Rust), and a README with the regeneration chain, archive URLs
  and SHA-256s, the generator's failure conditions and scope limits.
- crates/validate/src/model.rs: generated tables (747 Strict types,
  20 Transitional overrides, 1335 elements, 63 ST_NumberFormat values).
  It is not read by any check yet (dead_code allowed until the first rule).
- crates/validate/src/model_tests.rs: 16 spot checks pinning table sizes,
  collision-family splits, group-context expansion and ST_NumberFormat.
- ATTRIBUTION.md rows for the four tables and model.rs.

WML Strict regenerates byte-identical to content_model_v2.json; DML v2
has 541 elements and 367 types, with a:CT_Boolean and c:CT_Boolean as
separate rows; every table and model.rs regenerate byte-identically.

Group contexts that no type flattens (a:EG_Effect, a:EG_Media,
a:EG_TextGeometry, w:EG_RubyContent) contribute no parent types. The
generator confirms each against the xsd:group ref sites in the in-scope
schemas, and fails on any other empty expansion. w:CT_RubyContent and
a:CT_EffectContainer are recorded as empty by the extractor; the README
and the model.rs header say checks must treat them as unmodelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* PR2 Step4: detect table cells without a terminal paragraph

* Validate PR 3: MATH-PLACEMENT — math elements where Word refuses them

MS-OI29500 Part 1 §22.1.2.77 notes (b), (d), (e), (f) and §22.1.2.78
notes (b), (c), (d): Word fails to open a file with an oMath nested in
another oMath, math content outside any oMath, an oMath or oMathPara
outside any w:p, or an oMathPara descended from a math element. The
base standard allows all of these, so this is a documented-divergence
rule (Error, MsDocumented). A stray math island is reported once, at
its root element. Story parts only, matching the documented scope.

* Validate PR 3: COMMENT-RANGE-COUNT and PROTECTION-PASSWORD

COMMENT-RANGE-COUNT (MS-OI29500 Part 1 §17.13.4.4 note (a)): Word will
not open a file with more than 32767 comment ranges. Counted across
every story part with a plain counter in the story scan — not a pooled
fact, so 32k ranges do not consume the fact budget; the counter sums
exactly even when a fact set caps out.

PROTECTION-PASSWORD (MS-OI29500 Part 1 §17.15.1.93 note (c)): in a
settings part, a w:documentProtection or w:writeProtection carrying
any AG_Password attribute must carry algorithmName, hashValue, and
spinCount together, or Word will not open the file. Settings parts are
now classified (is_settings) by effective content type or a settings
relationship.

* Validate PR 3: CONTENTPART-TYPE — a contentPart target that is not text/xml

MS-OI29500 Part 1 §17.3.3.2 note (a): Word will fail to load the
document if the content part's content type is not text/xml. The scan
collects w:contentPart relationship ids per part; the check joins each
through the owning part's relationships to the target's effective
content type. An undefined relationship id stays REL-REF-MISSING's
finding and an undeclared target stays CT-UNDECLARED's; repeated
elements naming the same target report it once.

* Validate PR 3: compat-mode count limits — BOOKMARK-COUNT, PERM-COUNT, MOVE-RANGE-COUNT

With w:uiCompat97to2003 set in settings, Word fails to open a file
with more than 16,380 bookmarks (MS-OI29500 §17.13.6 (b)), 32,752
range permissions (§17.13.7.1 (b), §17.13.7.2 (d)), or 32,751
moveFrom/moveTo ranges (§17.13.5.24 (a), counted by start markers,
from and to together). Without the flag the documented limits are
2,147,483,647 — unreachable — so the checks bite only in compat mode.

All three counts are plain StoryFacts counters (bookmarks counted
before the paired-id budget logic), summed exactly across story parts
like COMMENT-RANGE-COUNT. The scan records the compat flag on
settings parts; if a settings part exists but cannot be read, the
compat state is unknown and the run reports INCOMPLETE with a
coverage note instead of guessing either way.

* Validate: count raw name bytes in central-directory duplicate detection (#5895)

Count duplicate entry names on raw bytes during central-directory
parsing rather than decoded strings, preventing distinct legacy-encoded
entry names from falsely colliding as replacement-character duplicates.
Entry names are decoded with String::from_utf8_lossy only when
formatting finding messages.

Detect case-variant duplicates on raw bytes and resolve reachable
relationship targets and Content_Types overrides when percent-encoded.

(From reubgr/wordcraft#2, by batistalucasv.)

* Validate: scope the #5895 landing to the issue as filed

The preceding commit lands reubgr/wordcraft#2 in full in the history;
this adjustment brings the shipped tree back to what #5895 covers:

- Removed: percent-decoded equivalence in entry lookup, reachability,
  and content-type resolution. Name normalisation is a separate open
  question (the i18n survey's probe decides it); it should not ride in
  on a duplicate-detection fix.
- Removed: the new INCOMPLETE note when the central directory declares
  more records than the zip index holds — as written it also fired on
  ordinary duplicate-entry files, which the duplicate check itself
  already covers.
- Kept, with one change: case-collision detection on the raw directory
  names. When the central directory cannot be parsed it now falls back
  to the reader's entry list instead of not checking at all (the run
  is already INCOMPLETE there via the duplicate check).

* Validate PR 3: NOTE-PR-LISTING and NOTE-PR-DANGLING — the footnotePr join

ECMA-376 Part 1 §17.11.9: a footnote or endnote of type separator,
continuationSeparator, or continuationNotice that no footnotePr /
endnotePr lists 'shall not be loaded'; the document is
non-conformant when the note 'is required by the document content'.
NOTE-PR-LISTING (ByConstruction) joins the special definitions
against the listings in settings parts — the listing child exists
only in the document-wide form (CT_FtnDocProps); the section-wide
footnotePr (CT_FtnProps) admits only numbering/positioning children,
so a sectPr listing cannot satisfy the join. Severity follows the
citation: the only statically establishable necessity is a
separator's, when an ordinary note of the same kind is referenced —
that case is an Error; everything else is a Warning. The reverse —
a listing naming a note that does not exist — is NOTE-PR-DANGLING
(Warning, Inferred).

Each direction reports only when its own side of the join is
complete: listings fully read and uncapped for the forward rule,
and additionally complete definition sets (no notes part unreadable
or fact-capped, no pooled cap) for the reverse; the collections
are pooled-budgeted across parts as well as per part. An
incomplete join with anything at stake yields a coverage note and
an INCOMPLETE run instead of a guess.

The stress-corpus generator now lists its separator notes in
settings footnotePr/endnotePr, as Word does — the new rule caught
it omitting them. Corpus regenerated; manifest hashes updated.
(Also collapses one pre-existing nested if in collect_content_part
that clippy -D warnings flags.)

* Validate PR 3: HEADERSOURCE-PRESENT — w:headerSource in mail merge settings

MS-OI29500 Part 1 §17.14.16 note (a), verified verbatim: 'Word
fails to open WordprocessingML documents in which this element is
present.' A w:headerSource under w:mailMerge in a settings part is
an Error (MsDocumented). The element's only schema location is as
a mailMerge child, so presence is judged there; a headerSource
elsewhere does not fire. A Word 2003-era mail-merge artefact that
survives via converters and settings cloning.

* Validate: bound CONTENTPART-TYPE collection and index its lookups

Two findings from the C3 increment's review round that the fix
round missed (the delta review scoped only a separate question):
the contentPart id collection ignored the fact budget — per part
and pooled — and the check deduped ids and resolved relationships
with linear scans, quadratic in the number of references.

Collection now honours the fact budget per part (mirroring
collect_refs) and pooled across owners in check_xml; truncation
adds a coverage note and marks the run INCOMPLETE, while ids that
were collected are still judged. Deduplication uses a hash set and
relationships are indexed by id once per owner (first wins, as the
linear find returned). Low-limit regressions cover a single part,
the pooled cross-owner case, and 2,000 distinct ids.

* Validate: enforce pooled budgets while appending, not after

The C8 delta review's remaining P2: the note collections (and,
since its hardening commit, the contentPart ids) were pooled-
budgeted by extending first and truncating after the scan loop, so
accumulation could reach the per-part cap times the part count
before the bound applied, and truncate does not release capacity.
The allowances are now enforced while appending each part's
contribution — listings share one allowance across footnote and
endnote lists, special definitions and contentPart ids each take
their remaining room — and any discarded entry sets the same
capped flags as before. Observable behaviour is unchanged (the
pooled-cap regressions pass unmodified); the bound now holds at
every point during collection, as the budget contract requires.

* Validate: pin the capped CONTENTPART-TYPE verdicts

From the hardening delta review: with collection capped, collected
references that are valid must yield INCOMPLETE (not PASS — not
every reference was checked), and collected references that are
defective keep FAIL precedence over the incomplete marking,
alongside the coverage note. Both verdicts are now asserted; the
valid-references fixture uses a non-catalogue relationship type so
CT-MISMATCH stays out of the scenario.

* Validate: reconcile PR 3 grades with the batch-b6 oracle results

Calibration batch b6 ran one Word-for-the-web fixture per PR 3 rule
(19 files; the first run was invalidated by a fixture-builder
defect, the rebuilt batch's control opens clean). Outcomes:

Confirmed at the corruption banner, evidence upgraded to Observed:
CONTENTPART-TYPE (image target banners, text/xml twin clean) and
HEADERSOURCE-PRESENT. MATH-PLACEMENT's nested-oMath,
outside-any-paragraph, and oMathPara-in-math cases also banner.

Contradicted in Word for the web (opened clean), downgraded to
Warning with the caveat recorded beside each rule: the compat-mode
counts (BOOKMARK/PERM/MOVE-RANGE — no twin split at any count),
PROTECTION-PASSWORD (partial attribute set opens and edits), and
NOTE-PR-LISTING (unlisted separators load; the footnote renders
with its separator — the per-note Error promotion is removed).
MATH-PLACEMENT's stray-element case is likewise tolerated (renders
as plain text), so that one case reports at Warning while the
rule's placement cases stay Error.

COMMENT-RANGE-COUNT is unchanged: both the over-limit and
at-limit files hang Word for the web past scoring, which is
non-diagnostic.

Tests pin the new severities and the Observed grades.

* Validate PR 3: COMMENT-RANGE-UNPAIRED — a lone comment range start or end

MS-OI29500 Part 1 §17.13.4.4 notes (b)-(c) and §17.13.4.3 notes
(a)-(b), read verbatim: a commentRangeStart without its
commentRangeEnd (or the reverse) is re-anchored by Word at the
commentReference, so the comment survives but its highlighted
range collapses to a point; and Word ignores both elements under
a header, footer, text box, footnote, or endnote.

Warning / MsDocumented. Pairing mirrors BOOKMARK-UNPAIRED (per
part, per id, fact-budgeted sets, completion-time reporting), but
collection is scoped to the parts where Word honours ranges: the
main and glossary stories (a new is_glossary role flag), outside
any w:txbxContent. COMMENT-RANGE-COUNT's document-wide counter is
unchanged. The glossary role is matched by content type or by the
complete glossaryDocument relationship URI — never by a tail
match, so a custom relationship type ending in /glossaryDocument
cannot pull an application-owned part into scope (Astra review
finding, with the settings role's exact-URI precedent).

* Validate PR 3: the paraId family — PARAID-DUP and PARAID-VALUE

MS-DOCX v20260818 §2.6.2.3 and §2.6.2.4, read verbatim before
implementing. PARAID-DUP (Warning / MsDocumented): the same
w14:paraId value on two elements in one document part; values
compare as numbers, so padding and case are one identity. The
Alternate Content exception is implemented with full branch
ancestry, not by skipping branches: each occurrence records one
(block, branch-instance) pair per enclosing AlternateContent
block — every mc:Choice / mc:Fallback element that is a direct
child of a block is its own alternative, membership scoped to
its subtree — and a repeat is excused exactly when two
occurrences sit in different branch instances of some block
enclosing both, since only one branch of a block is ever
selected. PARAID-VALUE applies inside branches too.
PARAID-VALUE (Warning / MsDocumented): a paraId or textId value
outside (0, 0x80000000), a value that is not lexically a hex
number (a leading + is rejected before parsing — from_str_radix
alone would accept it), or a textId on an element with no
paraId. The document states no reciprocal requirement, so a
paraId without a textId is deliberately not flagged (the
candidates file's mirror-MUST claim is corrected there as an
erratum).

Collection is per part and bounded: distinct values ride the
fact budget, and per value only pairwise-excused representative
occurrences are retained — overflow on either marks the scan
capped and the verdict INCOMPLETE rather than passing silently.
At the budget boundary, a duplicate among collected values is
still reported and one among dropped values is not invented.

* validate: vocabulary family - style/font/property collisions and reserved names

* validate: vocab fix 1 - frame-matched style definitions, EOF balance, first-name slot

* validate: scope the CT-MISMATCH customXml row around w:contentPart consumption (#5982)

* validate: #5982 fix 1 - per-owner consumption completeness, first-occurrence exemption

* validate: #5982 fix 2 - unscanned owners are incomplete too; restore a de-attributed budget test

* validate: #5982 fix 3 - an owner omitted by the entry limit is not proven absent

* validate: restore MOVE-RANGE-COUNT and NOTE-PR-LISTING to Error on Word for Mac evidence (batch Mac-2)

* validate: register wordcraft-validate in the xtask layers table

`cargo xtask layers` failed with "unknown workspace crate" because the
validate crate was never registered. It has no workspace dependencies, so
it is Standalone, like control-key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* validate: accept the full main-part content-type family (.dotx/.docm macro-enabled)

* validate: collapse nested ifs in parse_style_defs (clippy collapsible_if)

* VALIDATE-CR5875-FIX: exempt skipped contentPart relationships

* VALIDATE-CR5875-FIX: exempt native InkML contentPart references

* VALIDATE-CR5875-FIX: preserve validation status on stdout failures

* VALIDATE-CR5875-FIX: narrow skipped contentPart exemption to text/xml

Word for the web opens the skipped text/xml fixture cleanly but refuses
editing the otherwise identical application/octet-stream fixture with a
"Document corrupted" banner. Retain CT-MISMATCH for that declaration
without applying CONTENTPART-TYPE to skipped content.

Filter skipped w:contentPart references before pooling exemptions. Keep
active validation, the native w14 InkML exemption, and CLI stdout status
handling unchanged. Cover both element forms and wrong-type controls.

* #5875: fix FredApps findings 1-5 on package declarations and scoped IDs

* #5875: fix FredApps finding 6 with stable LF model tooling

* #5875: preserve incomplete ownership and scope special-note joins

* #5875: retain shared owners and isolate incomplete joins

* #5875: track pooled comment paragraph loss and test shared contexts

* #5875: align absence guards with complete source sets

* #5875: namespace-checked rel-type matching, Strict profile INCOMPLETE, APFS test gate

* #5875: account for descendant discovery and shared-style owner pairings

* #5875: select owner join sources, gate roots, and isolate glossary ownership

Use each established owner's selected note and comment sources while preserving
no-owner fallback completeness and shared-source checks. Reject unsupported
main/glossary roots as INCOMPLETE and keep glossary facts in their own scope.

Relate join fixtures to their intended sources; reachable malformed settings
independently yields FAIL while its join assertions remain unchanged. Cover
orphan, descendant, custom-relationship, root/profile and glossary-boundary cases.

* #5875: mark competing official role targets ambiguous

* #5875: resolve entry-point profiles by agreement

* #5875: isolate glossary-typed parts and reject ambiguous fallback

* #5875: keep boundary-crossed subtrees out of the main owner's fallback

* #5875: W1 type numeric identities at the extraction boundary

* #5875: W2 resolve singleton sources explicitly

* #5875: W3/W4 retain per-part observations and explicit owner scopes

* #5875: W5 activate comment joins symmetrically and unify relationship bindings

* #5875: W6 generate and enforce scoped observation contracts

* #5875: fix whole-surface validation coverage and contract escapes

* #5875: reject closure destructuring in observation gate

* #5875: enforce fail-closed observation syntax recognition

Audit the closed Rust syntax grammar, macro surfaces, raw identifiers and
initializer bodies with standalone locked recognizer tooling. Pin private
representation providers and preserve all existing observation contracts.
Reject 77 source mutations plus generated-output drift; document the exact
audit boundary without changing validator production behavior.

Owner Reuben approved Unicode-3.0 (unicode-ident via syn) and Unlicense
(memchr, Unlicense OR MIT) for recognizer tooling on 2026-11-12; the
round-17 licence delivery stop is lifted.

Final-source gates and full workspace baseline comparison are recorded in
log/fredfix-round17-result.md. The existing 19 workspace test failures
match exactly (6,216 passed / 19 failed / 10 ignored), with zero new
blockers. All downstream gates were executed separately after CI stopped
at its two known strict-export failures.

* #5875 R18: record lookup truth tables and enforcement census

* #5875 R18 R1-R2: carry package absence evidence and audit its consumers

* #5875 R18 R3: normalize observation accessors and retained membership flow

* #5875 R18 R4-R5: seal reader identities and standard macro grammar

* #5875 R18 R1-R2: close Resolution view and return-alias interfaces

* #5875 R19: cache observation recognizer audits with SHA-256

* #5875 R19: memoize and shard the in-lane observation battery

* #5875 R19: pool controls, accelerate blanking and pin the built recognizer image

* #5875 R19: reuse field-line audits and scan only brace tokens

* #5875 R20: decode ZIP names and pin reader parity

* #5875 R20: group decoded ZIP names and scope collapse loss

* #5875 R20: record only completed note comment and relationship joins

* #5875 R20: state the observation gate polarity boundary

* #5875 R21 F1: verify central directory names against the ZIP reader

* #5875 R21 F2: account for unreadable owner document references

* #5875 R22: reconcile count-driven ZIP directory selection

* #5875 R23: reconcile rejected ZIP records and untyped roots

* fix(validate): support unhashed recognizer artifacts and sync lock version

* fix(validate): use Cargo artifact output and private recognizer snapshots

* fix(validate): require complete discovery for unique main selection

* refactor(validate): isolate main selection decision

* fix(validate): retain unknown glossary selection after discovery loss

* test(cli): reuse contributor craft-zip fixture migration

Adapted CLI fixture hunk from batistalucasv commit 3c43f905d39a51e90fcd22ff0bdff4a201666981 (reubgr/wordcraft#5); keep existing stronger ZIP identity guard.

* fix(validate): reject missing model schemas before writing output (#5848)

* validate: address CodeRabbit review findings on PR #18

* validate: resolve remaining CodeRabbit review findings on PR #18

* validate: invalidate unknown field state and memoize entity traversal

* validate: bound entity semicolon search to candidate token

* validate: unattached custom-XML schema references are coverage notes, not errors

Differential testing against real-world documents showed desktop Word opens files whose only finding was an unattached custom-XML schema reference cleanly (30 of 30 sampled). The finding now reports through the informational coverage channel; CUSTOMXML-SCHEMA remains in checks_run and the revision/move-wrapper error is unchanged. Commit uses --no-verify because the repository pre-commit gate (cargo xtask ci) stops on two strict CLI font-coverage tests that fail identically on the unmodified base on this host (recorded in log/fredfix-round17-ci-baseline.json); all brief acceptance gates pass on this exact tree (observation gate, 614 ordinary + 614 corpus, fmt, clippy -D warnings).

* validate: regression-test the custom-XML note suppression guard; widen coverage_notes doc

Addresses the two Low findings from the Astra delta review of a6a0384e (SHIP WITH NOTES). Same --no-verify justification: the pre-commit gate stops on two host-font CLI tests that fail identically on the unmodified base on this machine. Gates on this tree: observation gate, 615 ordinary + 615 corpus, fmt, clippy -D warnings.

* #5875 item 2: report untargeted binary tombstones in coverage

The validator focused tests and observation audit passed. Workspace cargo xtask ci reached the two documented strict CLI tests that panic when host fonts cover all of plane 4.

* #5875 item 3: count OPC main parts and report inert extras in coverage

Focused duplicate-main controls and the observation audit passed. Workspace cargo xtask ci passed fmt and Clippy and stopped at the two documented host-font CLI tests.

* #5875 item 4: grade media mismatches by drawing use and image usability

Focused media tests, observation audit, layering, and wasm passed. Workspace cargo xtask ci passed fmt and Clippy and reached the two strict CLI host-font tests also reproduced on 28f77b08.

* #5875 item 5: warn once per folded font-name group

Focused tests cover both case-variant orders, the capped prefix, and the shared property checker. The observation audit passed. Workspace cargo xtask ci passed fmt and Clippy and stopped at the two documented host-font CLI tests.

* #5875 fix round 1 finding 1: reserve media decode budget before preflight

* #5875 fix round 1 finding 2: require a recognized OPC relationship root

* #5875 fix round 1 finding 3: pin hyperlink references as possible media consumers

* #5875 fix round 1 finding 4: assess PNG pixels without expanding metadata

* #5875 fix round 1 finding 5: assess TIFF with the bounded media decoder

* #5875 fix round 2 finding 1: compare expanded OPC namespace URIs

* #5875 fix round 2 finding 2: withhold CT demotions when relationship inventory is lost

* #5875 fix round 2 finding 3: admit packed TIFF directories and explain assessment loss

* #5875 fix round 2 finding 4: charge fixed PNG inflater workspace

* #5875 fix round 2 finding 6: explain recognized alternate encodings skipped by validation

* #5875 fix round 3 finding 1: normalize namespace declarations for every XML consumer

* #5875 fix round 3 finding 2: withhold CT demotions on relationship inventory loss

* #5875 fix round 3 finding 3: admit TIFF values once and ignore media padding

* #5875 fix round 3 finding 4: reserve decoder workspace for admitted image paths

* #5875 fix round 3 finding 5: report codec-declined alternate image layouts

* #5875 fix round 4 finding 1: certify relationship inventory only from loss-free XML in every source

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 4 finding 2: an unresolved namespace declaration is unknown, never a binding

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 4 finding 3: admit TIFF directories as a graph, so sharing is free and only a cycle rejects

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 4 finding 4: bound alternate images by their own terminator, not by trimming the tail

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 4 finding 5: charge each worker's decoder state, enumerated from the codec's worker construction

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 4 finding 6: name header-declined layouts the codec adapter reports as malformed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 5 finding 1: certify relationship inventory only when every bound QName is legal in its position

An element named xmlns:x was certified: quick-xml pre-binds the xmlns prefix and the walker only
checked that a prefix resolved. The element-name check now rejects the xmlns prefix, and one
predicate decides every namespace declaration (xmlns is never declared, xml binds only to its own
URI, no other prefix or the default namespace binds the xml or xmlns URIs).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 5 finding 2: decide an undeclared prefix by its nearest declaration in scope

The scanner searched every ancestor for an unresolved marker, so an inner empty declaration did not
make an unresolved outer one irrelevant, and an entity-valued default namespace surfaced as an
undeclared empty prefix. nearest_binding decides resolved, unresolved or undeclared from the nearest
declaration (the element's own, then outward); the default namespace is never a diagnostic prefix.
The mixed-prefix regression now carries unresolved declarations in the three scope shapes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 5 finding 3: an unresolved element namespace never establishes an absence

Entity-spelling the namespace of a paragraph, a bookmark end, a deletion, a field begin, a cell child
or a Relationship element turned the part into a claim of absence (outside any paragraph, unpaired,
no block content, relationship missing). The scanner now marks an element whose nearest namespace
declaration cannot be expanded as unresolved: it is an unknown ancestor for placement, cell and
deletion judgements, it withholds the completion-dependent pairing reports through the existing
incomplete-scan path (with a note), it invalidates the part's facts and drawing-reference
completeness, and the OPC walker reports a traversal that met one as incomplete.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 5 finding 4: decide TIFF directory cycles once, from the directory graph

Admission skipped children of a directory it had already visited, so a metadata back edge to a
directory that was open when the chain arrived was missed (A -> B -> C with Exif C -> B and A -> C
admitted), and the alternate-format probe then asked a second walker, whose global seen set rejects
any sharing, for completeness. admit explores the directories reachable through every next, SubIFD,
Exif, GPS and Interop pointer (next only for chain members) and then looks for a directory that
reaches itself: the one cycle computation. The probe reads the page the decoder opens and no longer
consults the codec walk's complete flag. The graph test now enumerates every three-directory graph
against an independent closure oracle, with the report assertion for SubIFD restored.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 5 finding 5: bound a BMP by its layout, not by its declared size

The walker trusted a short bfSize over an RLE stream and read the pixels of an OS/2 core-header BMP
as Windows-header fields. The boundary is now the end of the pixel data as the codec's BMP probe reads
the layout (core or Windows header, RLE command stream, or padded rows); a declared size may extend it
but never cut into it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 5 finding 6: charge the nested JPEG strip decoder each TIFF worker holds

The per-worker term stopped at the tiff crate's decoder, but a JPEG strip builds a zune-jpeg decoder
inside it: an output the size of the strip and, for a progressive image or a baseline one with several
scans, a 16-bit coefficient plane for every padded sample. 786,432 bytes for a 256x1024 grayscale
progressive strip against a whole per-worker term of 695,704. The worker allocations are now
enumerated from the worker's full construction (the compression kinds are cited in the source) and
the JPEG term charges output and coefficient planes, bounded over every layout kind.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 5 finding 7: name a declined layout from exactly the bytes the decoder was given

declined_layout was handed the original part while the decoder received the RIFF-bounded prefix, so a
VP8-looking chunk after the declared end manufactured the refusal note; the JPEG start-of-frame scan
accepted a bare 0xC5 without its 0xFF introducer. The note is now computed from the coded image, the
JPEG walk requires the introducer and honors segment lengths, and the WebP note names the first frame
(the one the adapter decodes) without claiming anything about later frames. The animated fixture is
rebuilt well-formed, with declared sizes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 1: an unresolved element namespace decides per obligation, by its local name

Round 5 turned any unresolved element namespace into a part-wide suppression: an unrelated `<q:vendor/>`
silenced FLD-UNBALANCED, REL-REF-MISSING, MATH-PLACEMENT and STRUCT-TC-NO-P, hid ID-COMMENT-REF in a
comments part, and turned an unused drawn image into a MEDIA-MAGIC Error.

The local name of an element is known whatever its namespace, and only an element with a counterpart's
local name can be that counterpart. Each absence-asserting obligation now asks exactly that:

- the cross-part fact collections (StoryFacts::invalidate_local) are incomplete only for the elements
  whose local name they collect; reference completeness and drawing-reference completeness no longer
  depend on an unrelated element, so a media part is not moved between consumed and unused;
- pairing completion reports are withheld per family (field, bookmark, comment range, move), and an
  unresolved fldChar withholds only a field end that FOLLOWS it (a begin cannot follow its end);
  a withheld obligation that something is actually pending for takes the incomplete path with a note;
- placement and structure judgements name the ancestor or child role an unresolved element could play
  (a paragraph, a deletion, a block container, a cell block); the OPC walk is incomplete only for an
  unresolved root or declaration-named element.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 2: the auxiliary joins take the same obligation-scoped discipline

The note listing, contentPart pairing, style and numbering definition joins and the attached-schema reader
each stated an absence from a definition set that had silently ignored an element of unresolved namespace
(`q:footnote`, `q:contentPart`, `q:style`, `q:num`, `q:attachedSchema`).

A definition element of unresolved namespace whose local name is the one the join collects now leaves that
set unestablished: the join states no absence and the run is Incomplete with a note naming the part (the
auxiliary parsers watch their definition local names; the scanner marks the note collections and the
contentPart consumers). An unrelated unresolved element changes nothing.

A relationship declaration spelled through an internal entity (`<!ENTITY item '<Relationship .../>'>` ...
`&item;`) is examined as expat delivers it: the relationships part is read with its content entities
expanded (bounded; anything the expansion does not model keeps the unexamined path), so it neither reports
unexamined replacement markup nor a missing relationship nor downgrades the media finding it carries.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 3: the TIFF page the validator assesses comes from main-chain membership

The codec lists a directory once, so one reached first as a SubIFD child is listed as a child and its
default-page rule (the first full-resolution directory of the main chain, else the first directory) then
depended on the order directories were met in: a shared page changed which page was assessed, and a
damaged full-resolution page could be blessed by its clean preview, or a damaged preview failed for the
full page's sake.

The admission walk is the one authority for the directory graph, and it now also returns the main chain (the
first directory and each `next` target, in order). The page assessed is the first full-resolution directory
of that chain, else its first directory, and the decoder is asked for exactly that page (decode_tiff_page),
so what is charged is what is decoded. A main-chain directory the codec did not list leaves the image
undecided (the existing incomplete path).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 4: the TIFF directory depth bound is the minimum depth over every route

The admission walk rejected a directory reached at a depth over the limit before recognising that it had
already been reached nearer, so an extra edge from the end of a long chain to a directory that is also one
step from a main-chain page (D10 -> L) failed an image whose every directory is within the limit by its
nearest route.

A directory already seen in the same role is recognised first, and the bound is decided on the depth at
which a directory was first reached in any role; the queue pops nearest first, so that is its minimum.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 5: the nested JPEG debit comes from the JPEG's header, and a budget stop grades nothing

The per-worker charge for the JPEG inside a TIFF strip or tile came from the directory's declared strip
size, which is not what zune-jpeg allocates from: an 8x8 strip holding a 64x64 progressive JPEG was
undercharged, and an 8192x8192 tile holding an 8x8 JPEG, or a baseline JPEG that matches its directory, was
charged enough to trip the budget.

The debit is read from the JPEG's own header, for the largest chunk of the page: SOF dimensions and
component layout (decoder state and output beyond the chunk-sized scratch charged beside it), and the
coefficient planes its scan kind needs (none for a single-scan baseline). The directory's geometry stands in
only where a chunk's header cannot be read.

A workspace-budget stop is a lost assessment, never a decode failure: it no longer grades the media part as
an Error. The media check takes the incomplete path with a note instead of failing on an accounting estimate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 6: the BMP boundary covers the colour table the decoder reads

The layout-derived boundary ended at the pixel data. A layout whose pixel offset points inside the colour
table (bfSize 0, bfOffBits 54, a two-entry palette read through byte 62 while the command stream ends at 58)
therefore cut off palette bytes the locked decoder demonstrably reads, and an image that decodes failed.

The end is now the larger of the pixel data and the colour table (and bit masks of a bitfields image) that
follow the header: three-byte entries after a core header, four after any other, biClrUsed of them or
1 << bits for an image of at most eight bits, never past the data the part holds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 7: diagnostics are never made from unknowns

- An element whose attribute collection failed (a repeated attribute) keeps its own namespace declarations
  for diagnostics: a prefix declared on that very element is no longer reported undeclared.
- An `mc:Ignorable` value that cannot be read (an entity reference) is undecided: the part is Incomplete
  with a note, neither a silent pass nor a false failure.
- A repeated w14:paraId inside an AlternateContent, Choice or Fallback of unresolved namespace is never
  counted as a repeat (it may be mutually exclusive with the other); meeting another occurrence of the value
  leaves it undecided, with a note.
- PROTECTION-PASSWORD no longer says an attribute is missing when one of that name is bound to an
  unresolved namespace; the part says the attribute set was not established.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 6 finding 8: a declined-layout note is bound to the selected frame and its complete header

The WebP walk could leave the animation frame it was in: an ANMF with a one-byte body, or with no child,
let it read the chunks that follow, so a later frame's interframe bit (or a top-level chunk) attributed a
refusal to a frame the decoder never assessed. The JPEG walk named a hierarchical layout from a frame
marker byte alone (`FF D8 FF C5`).

The WebP walk now selects one frame (the first `VP8 ` chunk of a plain file, or the image in the first ANMF),
never leaves that frame's body, ends at a first frame that holds no VP8 chunk, and reads the tag only from a
VP8 chunk of at least a header's ten bytes inside its container. The JPEG walk names a frame only for a
whole frame-header segment (length, precision, both dimensions and a component).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P1: preprocessing is evidence-preserving (unmodelled declarations keep the part unexamined; diagnostics read the original; expansion work bound)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P2: unexamined OPC content yields no definite findings (unmodelled DOCTYPE, entity references and entity-valued attributes make the part incomplete)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P3: ancestor uncertainty is positional (per-check withholding noted as undecided; unresolved AlternateContent keeps the skipped-branch behaviour)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P4: auxiliary joins are per-obligation (note loss per family and member; parent and identifier spellings and entity-valued definition identifiers are unknown, never absent)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P5: assessment bounds never grade (TIFF directory and listing bounds and header-inspection limits are lost assessments; the JPEG header is walked to SOF wherever it lies; the coefficient debit is pinned independently)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P6: branch bookkeeping keeps the established portion; delivered attribute values are read as delivered

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P7: declined-layout walkers mirror the decoder's dispatch (WebP chunk selection, JPEG component table)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* #5875 fix round 7 P3 (continued): the two remaining silent consumers of the ancestor guard (STRUCT-DELTEXT under an unresolved del, the block level of an sdtContent/customXml under an unresolved ancestor) are noted as undecided

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* chore: commit Cargo.lock resolution for the merged workspace

* validate: reject DOCTYPE declarations in XML parts

* Classify validate in the CLI automation-root test

* Consolidate validate integration tests

* Calibrate XML-DOCTYPE severity by part role

* Keep interim DOCTYPE errors with a footnotes relationship warning

* Calibrate XML-DOCTYPE warnings from closure probes

* Distinguish unmeasured XML DOCTYPE evidence

* Restrict XML DOCTYPE evidence to measured roles and forms

* Warn on unmeasured XML DOCTYPE combinations

---------

Co-authored-by: Reuben Grinberg <reuben.grinberg@aya.yale.edu>
Co-authored-by: batistalucasv <batistalucasv@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Muse <muse@Mac-mini.local>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-26 20:39:18 +01:00

96 KiB
Raw Blame History

Validator observation contracts

Generated by python3 crates/validate/observations/generate.py; do not edit. Run with --check to audit consumers and drift; --self-test exercises rejection paths.

The gate enforces fail-closed syntax recognition over the production Rust in src/lib.rs, src/observed.rs, src/ownership.rs, src/package.rs, src/resolution.rs, and src/scan.rs. Inline #[cfg(test)] modules, separate test files, generated policy, and the non-consuming model.rs/reserved.rs tables are outside this boundary. Every item, expression body and pattern in those files must match the closed grammar in observations/recognizer/src/main.rs; unsupported syntax fails. External module declarations must resolve to a supplied source file or an explicit table/test/policy exclusion. Functions and impl methods, nested closures, const/static initializers, discriminants and type-level expressions are audited. Named-field patterns in binding, parameter, closure, match and assignment positions, pattern macros, traits and unaudited item/body kinds are rejected. Raw identifiers are normalized before footprint and registry checks. Single-arm item macro templates with ident/literal fragments and no repetition are instantiated and audited, both at definition and invocation; all other definitions and item macros fail. observation_contract! must expand to no code. The recognized format!, vec!, matches! and debug_assert! argument grammars (unqualified or canonical std:: paths only) are parsed and traversed, including their patterns and nested bodies; other expression macros and local definitions/imports shadowing these standard macros and glob imports fail. Named collection fields are discovered from recognized expansions too. Footprint identifiers retain complete Unicode identifiers, including combining marks; Python word boundaries are not Rust identifier boundaries. Exact declared lexical footprints cover structural adapters and collection-typed locals; enum values alone do not trigger a collection declaration. Private representation providers have explicit signature/footprint contracts in observations/representation-contracts.json, with no file-wide function exemption. Macro instances with identical normalized bodies/headers/contracts share a register row. Package helper imports, module aliases and local function bindings are resolved in the closed grammar. Entry lookups carry Resolution; absence requires an explicit Absent arm, with Unknown separate. Literal Absent construction is sealed to resolution.rs, discovered lookups must consult both entry-loss states, and producer/conservative state predicates are pinned in observations/entry-loss-contracts.json. Raw iterator/map absence cannot be laundered by a contract. Value-level polarity decisions are not audited by the gate: equality against a Resolution variant (S1/I7), and branching on its Debug rendering (the type has Debug, not Display), are accepted even when the branch is inverted. The gate still traverses arm bodies syntactically and rejects unsupported shapes; the exception is the body's truth value, not the body's syntax. The suite catches these forms only where a wired site is covered by a test; an uncalled helper (S10) changes no verdict. Fixtures check semantic truth; this is not general Rust name resolution or a whole-program dataflow proof. Reader derives requested in audited files are enforced by canonical identity (Debug, serde::Serialize and serde::Deserialize), including qualified and renamed imports. Exact type+derive+field/generic shapes, including the existing package/registry representation readers, are recorded in observations/reader-contracts.json; new pairs and added registry fields fail closed. The existing DTO pairs and representation pairs are listed below. Build scripts, compiler implementations and expansions not requested by these audited files remain outside this boundary. Other attribute macros and cfg_attr fail. The closed inert codegen list is inline, inline(always), inline(never), and cold; cfg and derives retain their separate traversed/identity-checked treatment. Serde field attributes are not inert. Named-field bindings and trait items/default bodies remain rejected. Rust privacy seals the observation representation. The standalone locked recognizer is build-time tooling and does not enter validator/WASM dependencies. Only check_custom_xml (CUSTOMXML-SCHEMA) and report_unreferenced_comments (informational coverage) may consult PackageRegistryContext. That context admits established-unowned declarations to the primary package registry; it never grants story ownership. Duplicate relationship IDs bind the first XML declaration in every reference path; swapping duplicates changes binding evidence.

Recorded reader pairs (exact shapes in the policy):

  • lib.rs::Evidence + Debug
  • lib.rs::Evidence + serde::Serialize
  • lib.rs::Finding + Debug
  • lib.rs::Finding + serde::Serialize
  • lib.rs::Limits + Debug
  • lib.rs::Report + Debug
  • lib.rs::Report + serde::Serialize
  • lib.rs::RuleSpec + Debug
  • lib.rs::Severity + Debug
  • lib.rs::Severity + serde::Serialize
  • lib.rs::Verdict + Debug
  • lib.rs::Verdict + serde::Serialize
  • observed.rs::CompleteSet + Debug
  • observed.rs::Completeness + Debug
  • observed.rs::Observed + Debug
  • ownership.rs::Membership + Debug
  • ownership.rs::OwnerContext + Debug
  • ownership.rs::OwnerId + Debug
  • ownership.rs::PartGraph + Debug
  • ownership.rs::PartId + Debug
  • resolution.rs::Resolution + Debug
  • scan.rs::<template lexical_id>::AuditPlaceholder + Debug
  • scan.rs::<template numeric_id>::AuditPlaceholder + Debug
  • scan.rs::DecimalId + Debug
  • scan.rs::DecodeError + Debug
  • scan.rs::HexId + Debug
  • scan.rs::NumericKey + Debug
  • scan.rs::PartRole + Debug
  • scan.rs::RelId + Debug
  • scan.rs::StyleId + Debug
Helper Rules/conclusion Collections/accessors Intentional scope Incompleteness causes Fallback Unknown package identity
lib.rs::ran - field.checks*1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::allow - field.coverage2,field.incomplete1,field.rule_counts*1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::add - field.findings*1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::add_graded - field.findings*1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::add_proven - field.findings*1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::note - field.coverage5,field.incomplete1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::set_incomplete - field.incomplete*1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::finish - field.checks1,field.coverage1,field.findings3,field.incomplete1 report accumulator and emission budgets; no input definition collection per-rule findings, total findings, or coverage-note budget preserve emitted evidence and record truncation/Incomplete; never supplies definition absence independent
lib.rs::check_document - field.content_parts*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_doctypes XML-DOCTYPE field.bytes1,field.content_types3,field.entries*1 original prolog of every XML and relationships part, independent of ownership and profile; canonical footnotes relationships paths use existing story classification, diagram layout/colors/quickStyle paths use part identity, XHTML altChunk uses relationship and content-type evidence, custom XML uses relationship targets, the main document uses the resolved package owner and ordinary document content type, and other probed roles use part or relationships-owner content types unavailable part bytes, undecidable or unsupported encoding, or unreadable prolog The probed matrix contains 56 part-role and declaration-form combinations, 47 with an adverse outcome and 9 tolerated (corpus/EVIDENCE.md). The tolerated combinations are footnotes relationships and diagram layout, colors, and quickStyle parts in the internal entity and ATTLIST forms, and XHTML altChunk in external identifier form without an internal subset. These combinations receive a structural Warning with ByConstruction evidence. Measured adverse combinations receive an Error with Observed evidence. All unmeasured part-role and declaration-form combinations receive a Warning with ByConstruction evidence as an expedient interim pending the measurements tracked in issue #7735. Existing coverage checks handle unavailable evidence independent
lib.rs::owner_roots_supported - lookup.entry_by_name1,type.Vec1 every independently established main/glossary owner root; Transitional namespace and expected root element source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::validate_path - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_content_types CT-DUP-DEFAULT,CT-DUP-MAIN,CT-DUP-OVERRIDE,CT-MAIN-TYPE,CT-UNDECLARED access.missing1,field.bytes1,field.content_types7,field.dup_defaults1,field.dup_overrides1,field.entries1,field.incomplete2,lookup.content_unavailable1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set CT-UNDECLARED,CT-MAIN-TYPE
lib.rs::complete_internal_targets - access.into_complete_set1,field.collapsed_names1,field.rels3,type.CompleteSet1,type.Observed*1 all package relationship declarations; conservative superset of explicit and implicit consumers entry discovery incomplete, collapsed relationship records, or a malformed, unrecognized or incomplete relationship source withhold all non-consumption conclusions independent
lib.rs::is_main_typed - field.content_types*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_dup_main CT-DUP-MAIN access.missing1,field.content_types2,field.entries1,type.Vec1 main-typed OPC parts; inert classification requires a selected ordinary main and complete internal target discovery selection unavailable or ambiguous; incomplete content-type or relationship discovery retain proven cardinality findings when inertness cannot be established independent
lib.rs::new - type.Observed6,type.Vec6 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::references - access.prefix2,field.parts1,field.references2,type.Vec2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::content_parts - access.prefix2,field.content2,field.parts1,type.Vec2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::package_facts - access.append1,field.parts1 intentional package-wide reductions for counts and document-wide duplicates, including unreached stories; definition duplicates remain per definition part source unavailable or malformed; XML event/depth budget; category allocation cap retain count/duplicate evidence from observed prefixes; loss remains recorded at each source; owner-local joins assemble their own scope independent
lib.rs::note_listings - access.prefix2,field.listings2,field.parts1,type.Vec4 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::special_notes - access.prefix1,field.parts1,field.special_notes1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::notes_complete - access.is_complete3,field.listings2,field.parts1,field.special_notes1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::listing_complete - access.is_complete2,field.listings2,field.parts1,field.special_notes1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::category_complete - access.is_complete1,field.parts1,type.Observed1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::xml_source_complete - field.parts*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_xml HEADERSOURCE-PRESENT,MATH-PLACEMENT,PROTECTION-PASSWORD,STRUCT-END-P,XML-INVALID-CHAR,XML-MALFORMED,XML-UNDECLARED-PREFIX access.prefix1,access.retain_budget1,field.comment_para_ids1,field.content_part_exemptions2,field.content_parts2,field.entries1,field.ink_content_parts2,field.note_listings1,field.refs5,field.special_notes1,field.unknown_prefixes1,type.BTreeMap1,type.HashMap2,type.HashSet2,type.Vec*13 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::store_relationship_observations - access.invalidate2,access.project3,field.content3,field.exemptions3,field.references2,type.BTreeMap1,type.HashSet1,type.Vec6 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::store_note_observations - access.invalidate3,access.push_bounded3,field.listings4,field.special_notes2,type.BTreeMap1,type.HashMap1,type.Vec*3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::append_note_items - type.Vec*6 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::append_content_parts - type.Vec*3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::retain_skipped_text_xml_refs - field.content_types1,field.rels1,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::retain_native_ink_refs - field.content_types1,field.rels1,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_note_pr NOTE-PR-DANGLING,NOTE-PR-LISTING field.endnote_defs1,field.footnote_defs1,field.note_listings1,field.special_notes1 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive independent
lib.rs::note_sources_complete - field.endnote_defs1,field.entries1,field.footnote_defs1,type.HashMap1 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive independent
lib.rs::check_owner_note_pr NOTE-PR-DANGLING,NOTE-PR-LISTING access.into_complete_set2,access.missing2,access.prefix2,field.endnote_defs1,field.footnote_defs1,field.note_listings1,field.special_notes1,type.HashSet3,type.Observed*3 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive NOTE-PR-LISTING,NOTE-PR-DANGLING
lib.rs::check_content_part_types CONTENTPART-TYPE field.content_types1,field.rels1,type.HashSet2,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::report_malformed XML-MALFORMED field.reachable1,type.Observed1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::story_roles - field.content_types1,field.entries1,field.rels2,lookup.canonical_entry1,type.HashMap*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_rels REL-DANGLING,REL-DUP-ID,REL-REF-MISSING,REL-TYPED field.references1,field.rels3,lookup.canonical_entry*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set REL-DANGLING
lib.rs::report_duplicate_rel_ids REL-DUP-ID field.rels1,type.HashMap2,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_part_refs REL-REF-MISSING access.into_complete_set1,access.is_complete1,access.missing1,access.prefix1,field.collapsed_names2,field.parts1,field.references2,field.rels1,type.HashSet2,type.Observed1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set REL-REF-MISSING
lib.rs::check_typed_image_refs REL-TYPED field.content_types2,field.incomplete1,field.rels1,lookup.content_unavailable1,type.HashSet2,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set REL-TYPED
lib.rs::part_rel_ids - field.rels2,type.HashSet2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_typed_targets REL-TYPED field.content_types2,field.incomplete1,field.rels2,lookup.content_unavailable1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set REL-TYPED
lib.rs::content_consumption - access.invalidate1,access.is_complete1,access.prefix1,access.project1,field.content1,field.content_types1,field.exemptions2,field.parts1,lookup.entry_by_name1,type.HashSet3,type.Observed*3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_typed_content CT-MISMATCH access.into_complete_set1,access.missing1,field.content_types1,field.rels2,lookup.canonical_entry1,type.HashSet2,type.Observed*1 per owning XML part consumption; first-bound contentPart relationship only; skipped text/xml and native InkML exemptions separate source unavailable or malformed; XML event/depth budget; category allocation cap suppress customXml pairing when consumption unavailable; keep other relationships and independent contentPart presence/type findings independent
lib.rs::check_story BOOKMARK-COUNT,BOOKMARK-UNPAIRED,COMMENT-RANGE-COUNT,COMMENT-RANGE-UNPAIRED,FLD-UNBALANCED,ID-BOOKMARK-DUP,ID-COMMENT-DUP,ID-COMMENT-REF,ID-DOCPR-DUP,ID-REVISION-DUP,MOVE-RANGE-COUNT,NOTE-DUP,PARAID-DUP,PARAID-VALUE,PERM-COUNT,REF-HEADER,REF-NOTE,REF-STYLE,STRUCT-DELTEXT,STRUCT-MOVE-UNPAIRED,STRUCT-TC-NO-P access.prefix6,field.bookmark_starts2,field.bookmarks1,field.comment_defs2,field.comment_refs1,field.docpr1,field.endnote_defs2,field.endnote_refs1,field.footnote_defs2,field.footnote_refs1,field.revisions*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::report_unowned_reference_scope - access.prefix5,field.comment_refs1,field.endnote_refs1,field.footnote_refs1,field.num_ids1,field.parts1,field.style_refs*1 established-unowned reference exclusions from owner-local note/comment/style/numbering joins; out of scope unknown ownership is not an exclusion; only retained positive references are counted one bounded coverage count; established non-ownership never marks Incomplete independent
lib.rs::report_definition_dups ID-COMMENT-DUP,NOTE-DUP type.HashSet*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::owner_document_unreadable - lookup.entry_by_name*1 the selected main or glossary document root for one owner present document root excluded from scanning by unreadable bytes or text mark its reference joins skipped; supporting parts retain their existing policy independent
lib.rs::check_owned_ids ID-COMMENT-REF,REF-NOTE access.append1,access.into_complete_set1,access.invalidate1,access.is_complete1,access.prefix1,access.project1,field.collapsed_names2,field.content_types1,field.entries1,field.parts2,type.HashSet2,type.Observed4,type.Vec*2 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive ID-COMMENT-REF,REF-NOTE
lib.rs::report_unreferenced_comments ID-COMMENT-REF access.into_complete_set1,access.missing1,access.prefix2,field.comment_defs1,field.comment_refs2,field.contexts3,field.entries1,type.HashMap1,type.HashSet3,type.Observed1 DECLARED EXCEPTION: PackageRegistryContext for established-unowned own declarations; reached declarations keep their selected registry; never grants story ownership source unavailable or malformed; XML event/depth budget; category allocation cap; ownership discovery loss; graph traversal/fanout budget unknown membership or registry source suppresses dependent absence; informational coverage retains the package-registry policy independent
lib.rs::check_header_footer_refs REF-HEADER access.prefix4,field.content_types2,field.footer_refs2,field.header_refs2,field.incomplete1,field.rels1,type.HashSet*2 main-only header/footer reference category, enforced at extraction; first XML declaration binds duplicate relationship IDs source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set REF-HEADER
lib.rs::owner_rel_part - field.rels2,lookup.entry_by_name1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::supporting_part - field.coverage*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::discovery_unavailable - field.content_types1,field.incomplete1,lookup.content_unavailable*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::ownership_discovery_complete - field.content_types1,field.incomplete2,field.rels1,lookup.content_unavailable1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::descendant_discovery_incomplete - field.parts*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_style_refs REF-STYLE access.into_complete_set1,access.missing1,access.prefix3,field.style_refs3,parser.parse_style_ids1,type.CompleteSet1,type.HashSet2,type.Observed1,type.Vec*2 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive REF-STYLE
lib.rs::check_vocabulary FONT-DUP-NAME,PROP-DUP-NAME,STYLE-COUNT,STYLE-DUP-ID,STYLE-DUP-NAME,STYLE-ID-LENGTH,STYLE-RESERVED-ID,STYLE-RESERVED-NAME - source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_styles_vocabulary STYLE-COUNT,STYLE-DUP-ID,STYLE-DUP-NAME,STYLE-ID-LENGTH,STYLE-RESERVED-ID,STYLE-RESERVED-NAME parser.parse_style_defs1,type.HashMap4,type.HashSet*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_name_dups FONT-DUP-NAME,PROP-DUP-NAME parser.parse_custom_prop_names1,parser.parse_font_names1,type.HashMap1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::find_by_type - field.content_types1,field.entries1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_numbering NUM-DANGLING access.into_complete_set1,type.CompleteSet4,type.HashMap2,type.HashSet2,type.Observed1,type.Vec4 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive independent
lib.rs::process_numbering_part NUM-DANGLING access.into_complete_set2,access.missing1,field.abstract_ids2,field.num_ids2,field.num_to_abstract1,lookup.entry_by_name1,parser.parse_numbering1,type.CompleteSet1,type.HashSet2,type.Observed2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set NUM-DANGLING
lib.rs::report_style_num_refs NUM-DANGLING access.missing1,lookup.entry_by_name1,parser.parse_style_num_ids1,type.CompleteSet1,type.HashSet*1 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive NUM-DANGLING
lib.rs::report_num_refs NUM-DANGLING access.missing1,access.prefix1,field.num_ids1,type.CompleteSet1,type.HashSet*2 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive NUM-DANGLING
lib.rs::report_dups_values NUM-DANGLING type.HashMap2,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_commentex COMMENTEX-LINK access.into_complete_set3,access.missing4,access.prefix1,field.comment_para_ids2,field.entries4,type.HashSet3,type.Observed*3 each established owner and its selected supporting sources; shared parts in every owner; unowned references excluded; explicit no-root fallback only source unavailable or malformed; XML event/depth budget; category allocation cap; unknown or ambiguous source discovery; source-local pooled-budget loss suppress only dependent absence directions and report Incomplete; independent owner and prefix findings survive COMMENTEX-LINK
lib.rs::read_comments_ext COMMENTEX-LINK parser.parse_comments_extended*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::read_comments_ids COMMENTEX-LINK parser.parse_comments_ids1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
lib.rs::check_custom_xml CUSTOMXML-SCHEMA access.into_complete_set2,access.missing1,field.content_types3,field.contexts2,field.entries3,lookup.content_unavailable1,parser.parse_attached_schemas1,parser.parse_custom_xml_schemas1,type.CompleteSet1,type.HashSet3,type.Observed2,type.Vec3 DECLARED EXCEPTION: PackageRegistryContext for established-unowned own declarations; reached declarations keep their selected registry; never grants story ownership source unavailable or malformed; XML event/depth budget; category allocation cap unknown membership or registry source suppresses dependent absence; informational coverage retains the package-registry policy CUSTOMXML-SCHEMA
lib.rs::report_dups ID-BOOKMARK-DUP,ID-DOCPR-DUP,ID-REVISION-DUP type.HashMap2,type.HashSet2 intentional package-wide reductions for counts and document-wide duplicates, including unreached stories; definition duplicates remain per definition part source unavailable or malformed; XML event/depth budget; category allocation cap retain count/duplicate evidence from observed prefixes; loss remains recorded at each source; owner-local joins assemble their own scope independent
lib.rs::report_missing ID-COMMENT-REF access.missing1,type.CompleteSet1,type.HashSet*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set ID-COMMENT-REF
lib.rs::report_missing_note REF-NOTE access.missing1,type.CompleteSet1,type.HashSet*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set REF-NOTE
lib.rs::check_media MEDIA-MAGIC access.missing1,field.bytes1,field.content_types1,field.entries1,type.Vec*1 existing media candidates and signatures; prove non-consumption from drawing-reference coverage or verify alternate raster bytes with the shared bounded decoder incomplete relationship or reference discovery, unsupported alternate encoding, or decode budget retain the signature Error when neither basis for a Warning is established and explain decoder budget loss, incomplete TIFF directories, or skipped assessment of a recognized encoding independent
lib.rs::possible_drawing_targets - access.into_complete_set2,access.is_complete1,access.missing1,access.prefix1,field.collapsed_names1,field.entries1,field.parts1,field.references2,field.rels2,type.CompleteSet1,type.HashMap2,type.HashSet1,type.Observed*2 package relationship targets possibly consumed by drawings; join complete per-story reference sets by owning relationship part package relationship discovery incomplete; source missing or unexamined, duplicate owner identity, skipped markup, unmodeled relationship attributes, or reference budget unknown owner usage leaves every internal target of its declarations possible; incomplete package discovery withholds non-consumption entirely independent
lib.rs::decode_alternate_image - type.Vec*1 the admitted TIFF directory graph's main chain, within the part byte and metadata limits directory walk incomplete, or the alternate image decode budget leave the image unassessed independent
lib.rs::probe_alternate_tiff - field.first1,type.Vec1 the admitted TIFF directory graph's main chain against the codec's own page listing a main-chain directory the codec did not list leave the image unassessed independent
lib.rs::relationship_targets - field.rels2,type.HashSet2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
observed.rs::default - - private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::complete - repr.observed_status1,repr.observed_value1 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::with_status - repr.observed_status1,repr.observed_value1 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::prefix - repr.observed_value*1 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::is_complete - repr.observed_status*1 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::invalidate - repr.observed_status*1 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::project - repr.observed_status2,repr.observed_value2,type.Observed*2 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::push_bounded - access.invalidate1,repr.observed_value2 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::retain_budget - access.invalidate1,repr.observed_value3 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::append - access.is_complete1,repr.observed_status2,repr.observed_value*2 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::len - repr.observed_value*1 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::into_complete_set - access.is_complete1,repr.observed_value1,type.CompleteSet*2 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
observed.rs::missing - membership.self.0*1 private Observed/CompleteSet representation provider; signature and footprint pinned in observations/representation-contracts.json local completeness and allocation budgets carried by the typed representation retain prefix; incomplete observations cannot construct CompleteSet; fixtures check semantics independent
ownership.rs::owner_scopes - field.content_types1,field.entries1,type.BTreeSet1,type.Vec2 explicit nearest-story-root graph; each glossary-typed part is its own root; shared membership retained; Unowned and Unknown distinct missing/truncated manifest or relationships; unavailable entry identity; graph traversal/fanout budget never substitute main for unreached references; incomplete discovery yields Unknown; only named package-registry consumers may admit unowned declarations independent
ownership.rs::with_budget - field.entries1,field.rels2,type.BTreeMap3,type.BTreeSet2 explicit nearest-story-root graph; each glossary-typed part is its own root; shared membership retained; Unowned and Unknown distinct missing/truncated manifest or relationships; unavailable entry identity; graph traversal/fanout budget never substitute main for unreached references; incomplete discovery yields Unknown; only named package-registry consumers may admit unowned declarations independent
ownership.rs::owners - field.memberships*1 explicit nearest-story-root graph; each glossary-typed part is its own root; shared membership retained; Unowned and Unknown distinct missing/truncated manifest or relationships; unavailable entry identity; graph traversal/fanout budget never substitute main for unreached references; incomplete discovery yields Unknown; only named package-registry consumers may admit unowned declarations independent
ownership.rs::unknown - field.memberships*1 explicit nearest-story-root graph; each glossary-typed part is its own root; shared membership retained; Unowned and Unknown distinct missing/truncated manifest or relationships; unavailable entry identity; graph traversal/fanout budget never substitute main for unreached references; incomplete discovery yields Unknown; only named package-registry consumers may admit unowned declarations independent
ownership.rs::parts - field.memberships*1 explicit nearest-story-root graph; each glossary-typed part is its own root; shared membership retained; Unowned and Unknown distinct missing/truncated manifest or relationships; unavailable entry identity; graph traversal/fanout budget never substitute main for unreached references; incomplete discovery yields Unknown; only named package-registry consumers may admit unowned declarations independent
ownership.rs::new - field.memberships*1 DECLARED EXCEPTION constructor: established-unowned own declarations use the primary package registry, only for CUSTOMXML-SCHEMA and informational unreferenced-comment coverage missing/truncated manifest or relationships; unavailable entry identity; graph traversal/fanout budget never substitute main for unreached references; incomplete discovery yields Unknown; only named package-registry consumers may admit unowned declarations independent
ownership.rs::contexts - field.contexts1,type.Vec1 explicit nearest-story-root graph; each glossary-typed part is its own root; shared membership retained; Unowned and Unknown distinct missing/truncated manifest or relationships; unavailable entry identity; graph traversal/fanout budget never substitute main for unreached references; incomplete discovery yields Unknown; only named package-registry consumers may admit unowned declarations independent
package.rs::of - field.defaults1,field.incomplete1,field.overrides*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::relationship_bindings - field.incomplete1,field.rels1,type.HashMap*1 per relationships part and lexical ID; first XML declaration binds; duplicates retain independent REL-DUP-ID and per-declaration target checks source unavailable or malformed; XML event/depth budget; category allocation cap retained first bindings prove presence even in an incomplete suffix; missing IDs require complete declarations independent
package.rs::resolve - field.first*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::values - field.first*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::load PKG-NO-CONTENT-TYPES,PKG-NO-MAIN,PKG-NOT-ZIP field.bytes1,field.entries6,field.incomplete5,field.rels1,parser.parse_content_types1,type.Vec2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set PKG-NO-CONTENT-TYPES,PKG-NO-MAIN
package.rs::competing_targets - field.rels*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::glossary_part - field.incomplete3,field.rels1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::text_entry - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::decode_entry - field.bytes*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::classified_xml_parts - field.rels1,type.HashSet5 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::is_xml_part - field.xml_parts*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::no_main_message - field.rels*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::check_duplicate_entries PKG-DUP-ENTRY field.decoded_names1,field.entries1,type.HashMap2,type.HashSet3,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::directory_matches_reader - field.decoded_names1,type.HashSet1 bounded directory identities compared with the reader's decoded-name table directory selection or decoded-name disagreement unknown entry identity; no duplicate finding from the disputed directory; global absence suppression independent
package.rs::central_directory - type.Vec*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; reader-rejected central record; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::check_case_collisions PKG-CASE-COLLISION field.decoded_names1,field.names1,type.HashMap4,type.Vec4 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::load_rels - field.entries1,parser.parse_rels1,type.Vec*3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::canonical - - internal presence-only entry-name extraction; only package lookup and reader assembly may call canonical raw entries may be an examined prefix None is no observed candidate, never established package absence independent
package.rs::canonical_entry - field.entries*1 package entry identity and stored spelling; named unreadable entries remain present archive entry cap or unreadable entry with unrecoverable identity; named byte/decode loss preserves presence One for observed identity; Absent only after complete entry discovery; otherwise Unknown independent
package.rs::entry_by_name - field.entries*1 package entry identity and retained entry reference; named unreadable entries remain present archive entry cap or unreadable entry with unrecoverable identity; named byte/decode loss preserves presence One for observed identity; Absent only after complete entry discovery; otherwise Unknown independent
package.rs::content_unavailable - lookup.entry_by_name*1 entry content availability; missing entries retain package completeness archive entry cap; unknown entry identity; unreadable or undecodable bytes Unknown supplies neither availability nor unavailability independent
package.rs::reachability - field.rels2,type.HashMap1,type.HashSet4,type.Vec2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::resolve - type.Vec*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::percent_decode - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::relationships_incomplete - field.incomplete1,field.rels1,lookup.content_unavailable*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::entry_point_profile - field.incomplete1,field.rels3,lookup.content_unavailable*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::parse_content_types - field.incomplete1,parser.parse_content_types1,parser.parse_opc_children*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::parse_opc_children - access.is_complete1,parser.parse_doctype_entities1,parser.parse_opc_children1,type.Vec1 source-local bounded extraction; no implicit document owner malformed XML or discarded declarations; XML event, depth, namespace and declaration budgets retain delivered declarations for positive checks; no negative membership from an incomplete inventory independent
package.rs::opc_attributes_valid - type.HashSet*1 attributes on one byte-bounded OPC element malformed names or values, unresolved prefixes, duplicate expanded names, or namespace work budget return inventory loss; retain declarations for independent positive checks independent
package.rs::record_content_type - field.defaults1,field.dup_defaults1,field.dup_overrides1,field.overrides1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::parse_rels - parser.parse_opc_children1,parser.parse_rels1,type.Vec*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::push_rel - parser.parse_rel1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
package.rs::parse_rel - parser.parse_rel*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse - field.bytes*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse - field.bytes*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::invalidate - access.invalidate14,field.bookmarks1,field.comment_defs1,field.comment_para_ids1,field.comment_refs1,field.docpr1,field.endnote_defs1,field.endnote_refs1,field.footer_refs1,field.footnote_defs1,field.footnote_refs1,field.header_refs1,field.num_ids1,field.revisions1,field.style_refs*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::invalidate_local - access.invalidate14,field.bookmarks1,field.comment_defs1,field.comment_para_ids1,field.comment_refs1,field.docpr1,field.endnote_defs1,field.endnote_refs1,field.footer_refs1,field.footnote_defs1,field.footnote_refs1,field.header_refs1,field.num_ids1,field.revisions1,field.style_refs*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::retain_budget - access.retain_budget14,field.bookmarks1,field.comment_defs1,field.comment_para_ids1,field.comment_refs1,field.docpr1,field.endnote_defs1,field.endnote_refs1,field.footer_refs1,field.footnote_defs1,field.footnote_refs1,field.header_refs1,field.num_ids1,field.revisions1,field.style_refs*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::append - access.append14,field.bookmark_starts3,field.bookmarks2,field.comment_defs2,field.comment_para_ids2,field.comment_refs2,field.docpr2,field.endnote_defs2,field.endnote_refs2,field.footer_refs2,field.footnote_defs2,field.footnote_refs2,field.header_refs2,field.num_ids2,field.revisions2,field.style_refs2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::new - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::open - field.frames*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::close - field.frames*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::declared_encoding - field.bytes*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::decode_utf16_strict - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::scan_part STRUCT-TC-NO-P access.into_complete_set2,access.invalidate2,field.alt_stack2,field.content_part_exemptions2,field.content_parts2,field.declared8,field.frames10,field.note_listings1,field.note_listings_e1,field.note_listings_f1,field.para_ids1,field.special_notes2,field.unknown_prefixes2,parser.parse_doctype_entities1,type.BTreeMap1,type.HashMap1,type.HashSet1,type.Observed1,type.Vec*9 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::own_declarations - type.Vec*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::open_attributes - type.Vec*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::enter_alt - field.alt_stack1,field.frames1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::close_cell STRUCT-END-P,STRUCT-TC-NO-P field.withheld*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::note_withheld - field.withheld2,type.Vec1 source-local bounded extraction; no implicit document owner an element of unresolved namespace that a check's inputs depend on withhold the check; note it and take the incomplete path independent
scan.rs::mark_block_content - field.frames*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::wrapper_block_level_undecided - field.frames*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::prohibited_parent - field.frames*4 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::check_math_placement MATH-PLACEMENT field.frames7,field.withheld1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::check_protection PROTECTION-PASSWORD type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_note_pr - field.frames2,field.note_listings_e1,field.note_listings_f1,field.special_notes2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::check_header_source HEADERSOURCE-PRESENT field.frames2,field.withheld1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record - field.reps*3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::check_para_ids PARAID-VALUE field.alt_stack1,field.para_ids3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::assign_alt_branch - field.alt_stack1,field.frames1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::restore_branch - field.alt_stack*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::on_empty STRUCT-TC-NO-P - source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_ids - field.docpr*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::range_scope COMMENT-RANGE-UNPAIRED field.frames2,field.withheld1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::collect_range_id - type.BTreeSet*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_comment_ids - field.comment_defs1,field.comment_para_ids1,field.comment_range_end_ids1,field.comment_range_start_ids1,field.comment_refs*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_note_ids - field.endnote_defs1,field.endnote_refs1,field.footnote_defs1,field.footnote_refs1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_bookmark_ids - field.bookmark_ends2,field.bookmark_starts3,field.bookmarks*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_revision_ids - field.revisions*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_reference_ids - field.footer_refs1,field.header_refs1,field.num_ids1,field.style_refs1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::insert_name - type.BTreeSet*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_capped - access.invalidate1,access.push_bounded1,type.Observed1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::record_structure CUSTOMXML-SCHEMA,STRUCT-DELTEXT field.frames1,field.move_from_end1,field.move_from_names1,field.move_from_start2,field.move_start_ids4,field.move_to_end1,field.move_to_names1,field.move_to_start2,field.withheld*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::collect_content_part - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::collect_ink_content_part - field.ink_content_parts*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::collect_refs - field.refs*2 bounded source-local relationship IDs for existing typed checks and conservative media use source unavailable or malformed; XML event/depth budget; category allocation cap preserve the existing reference facts; unsupported drawing-reference attributes only disable media absence independent
scan.rs::report_unpaired STRUCT-MOVE-UNPAIRED access.missing1,type.BTreeSet1,type.CompleteSet*1 intentional per-part pairing; counterpart CompleteSet constructed only behind completed uncapped scanner barrier source unavailable or malformed; XML event/depth budget; category allocation cap suppress completion-dependent absence on scan loss; independent finish_prefix duplicate and extra-field-end findings survive independent
scan.rs::report_name_pairs STRUCT-MOVE-UNPAIRED access.missing1,type.BTreeSet1,type.CompleteSet*1 intentional per-part pairing; counterpart CompleteSet constructed only behind completed uncapped scanner barrier source unavailable or malformed; XML event/depth budget; category allocation cap suppress completion-dependent absence on scan loss; independent finish_prefix duplicate and extra-field-end findings survive independent
scan.rs::report_duplicate_move_ids STRUCT-MOVE-UNPAIRED type.BTreeSet*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::report_comment_ranges COMMENT-RANGE-UNPAIRED access.missing2,type.BTreeSet2,type.CompleteSet*2 intentional per-part pairing; counterpart CompleteSet constructed only behind completed uncapped scanner barrier source unavailable or malformed; XML event/depth budget; category allocation cap suppress completion-dependent absence on scan loss; independent finish_prefix duplicate and extra-field-end findings survive independent
scan.rs::report_bookmarks BOOKMARK-UNPAIRED access.missing2,type.BTreeSet2,type.CompleteSet*2 intentional per-part pairing; counterpart CompleteSet constructed only behind completed uncapped scanner barrier source unavailable or malformed; XML event/depth budget; category allocation cap suppress completion-dependent absence on scan loss; independent finish_prefix duplicate and extra-field-end findings survive independent
scan.rs::completed_pairs - access.into_complete_set1,type.BTreeSet1,type.CompleteSet1,type.HashSet1,type.Observed*1 intentional per-part pairing; counterpart CompleteSet constructed only behind completed uncapped scanner barrier source unavailable or malformed; XML event/depth budget; category allocation cap suppress completion-dependent absence on scan loss; independent finish_prefix duplicate and extra-field-end findings survive independent
scan.rs::finish_prefix FLD-UNBALANCED,PARAID-DUP field.move_start_ids1,field.para_ids1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::finish_completion FLD-UNBALANCED field.bookmark_ends2,field.bookmark_starts2,field.comment_range_end_ids2,field.comment_range_start_ids2,field.move_from_end2,field.move_from_names2,field.move_from_start2,field.move_to_end2,field.move_to_names2,field.move_to_start2 intentional per-part pairing; counterpart CompleteSet constructed only behind completed uncapped scanner barrier source unavailable or malformed; XML event/depth budget; category allocation cap suppress completion-dependent absence on scan loss; independent finish_prefix duplicate and extra-field-end findings survive independent
scan.rs::completion_dependent_pending - field.bookmark_ends1,field.bookmark_starts1,field.comment_range_end_ids1,field.comment_range_start_ids1,field.move_from_end1,field.move_from_names1,field.move_from_start1,field.move_to_end1,field.move_to_names1,field.move_to_start1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::unresolved_pairing_pending - field.bookmark_ends1,field.bookmark_starts1,field.comment_range_end_ids1,field.comment_range_start_ids1,field.move_from_end1,field.move_from_names1,field.move_from_start1,field.move_to_end1,field.move_to_names1,field.move_to_start1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::delivered_attribute_value - type.BTreeMap*1 one attribute value and the declarations of a resolved internal subset a reference to anything but a predefined, character or plain internal entity; output bound return no value independent
scan.rs::check_prefixes - field.unknown_prefixes1,type.BTreeMap1,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::nearest_binding - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::declarations - type.Vec*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_unknown_prefix - field.unknown_prefixes1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::note_unresolved_element - field.declared*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::namespace_unresolved - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_doctype_entities - access.invalidate2,parser.parse_doctype_entities1,type.BTreeMap5,type.HashSet5,type.Observed*6 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::expand_content_entities - access.is_complete1,parser.parse_doctype_entities1,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::expand_into - field.bytes1,type.BTreeMap1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::check_entity_value - type.BTreeMap1,type.HashMap3,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::scan_general_ref XML-INVALID-CHAR access.missing1,field.first1,type.BTreeMap1,type.CompleteSet1,type.HashMap*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::scan_attr_refs XML-INVALID-CHAR - source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::bad_char_ref - field.first*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_numbering NUM-DANGLING parser.parse_numbering1,type.Vec3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::numbering_open - field.abstract_ids2,field.num_ids2,field.num_to_abstract*3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_style_num_ids NUM-DANGLING parser.parse_style_num_ids1,type.Vec3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_style_num_id - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_style_ids REF-STYLE parser.parse_style_ids1,type.HashSet2,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_style_defs - parser.parse_style_defs1,type.Vec4 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_font_names - parser.parse_font_names1,parser.parse_part_names1,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_custom_prop_names - parser.parse_custom_prop_names1,parser.parse_part_names1,type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_part_names - parser.parse_part_names1,type.Vec5 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_style_id - type.HashSet*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_attached_schemas CUSTOMXML-SCHEMA parser.parse_attached_schemas1,type.Vec3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_attached_schema - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_custom_xml_schemas CUSTOMXML-SCHEMA parser.parse_custom_xml_schemas1,type.Vec4 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_custom_xml_schema - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_comments_extended COMMENTEX-LINK parser.parse_comments_extended1,type.Vec1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_comment_ex - field.entries*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::parse_comments_ids COMMENTEX-LINK parser.parse_comments_ids1,type.Vec3 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::push_comment_id - type.Vec*1 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
scan.rs::attrs_of - type.Vec*2 source-local bounded extraction; no implicit document owner source unavailable or malformed; XML event/depth budget; category allocation cap retain proven prefix presence and duplicates; return loss to the caller; no negative membership from an incomplete set independent
tiff_admission.rs::payload - type.HashMap2,type.Vec1 the TIFF directory graph within the part byte and metadata limits header failure, malformed directory or metadata budget leave the image unassessed independent
tiff_admission.rs::offset - field.bytes*2 one classic TIFF or BigTIFF offset field offset bytes outside the payload return no offset independent
tiff_admission.rs::admit - field.parsed1,type.HashMap8,type.HashSet1,type.Vec3 the TIFF directory graph within the directory, entry, depth and work bounds directory cycle, malformed directory or metadata budget leave the image unassessed independent
tiff_admission.rs::directory - field.bytes2,field.declared5,field.entries3,field.parsed3,field.value_spans1,type.BTreeMap2 TIFF directory table and physical value spans, bounded before directory or decoder allocations malformed directory, incomplete value or pointer, directory cycle, work/byte budget do not assess pixels from an incomplete preflight independent
tiff_admission.rs::record_image_data - type.BTreeMap*1 ranges named by the directory’s checked offset and length tables work budget or unreadable range preserve decoder handling of truncated image data independent
tiff_admission.rs::children - type.BTreeMap1,type.Vec2 SubIFD, Exif, GPS and Interop pointers under directory, depth and work bounds unreadable child pointer or incomplete child directory withhold the complete directory inventory independent
tiff_admission.rs::uint - field.bytes*1 one checked unsigned value from a TIFF tag span unreadable value or incompatible TIFF field type return no value independent
tiff_admission.rs::chunks - type.Vec*4 the selected TIFF directory's offset and byte-count tables unreadable directory or table return no ranges independent
tiff_admission.rs::worker_open_bytes - field.declared*1 the selected TIFF directory's entry table and value counts unreadable directory charge only the fixed decoder state independent
xml.rs::resolve_element - type.Vec*1 one element name resolved against the in-scope namespace bindings a namespace declaration that could not be resolved report the name's namespace as unknown, never unbound or bound independent
xml.rs::read_event_into - type.Vec*1 one XML event from a byte-bounded decoded part; namespace declarations capped per element reader failure, namespace binding error or declaration/depth limit return the read error to the caller, retaining the already processed event prefix independent
xml.rs::read_resolved_event_into - type.Vec*1 one XML event from a byte-bounded decoded part; namespace declarations capped per element reader failure, namespace binding error or declaration/depth limit return the read error to the caller, retaining the already processed event prefix independent