diff --git a/ROADMAP.md b/ROADMAP.md
index c6bae1c1d4..aef99a926a 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -1,7 +1,7 @@
# WordCraft roadmap
-> **Validation status:** 2026-11-12 · minor · #5875 round 18: package entry and availability lookups carry explicit absence/unknown states; the observation gate resolves bounded helper/accessor aliases and pins completeness predicates and reader derives. Qualified standard macros and four inert attributes are supported; named-field bindings and trait bodies remain closed grammar. Synthetic controls only; independent endpoint review remains required and readiness estimates are unchanged.
+> **Validation status:** 2026-11-18 · trivial · DOCX validation reports unattached custom XML schemas in coverage notes. Inline custom XML inside revision or move wrappers still fails under `CUSTOMXML-SCHEMA`. Independent endpoint review remains open.
> **Last reviewed:** 2026-10-31 · **Last updated:** 2026-11-12 · **Change:** minor (added layout.fitOnePage and its Layout › Page Setup ribbon button to condense a multi-page document by one page while preserving typography hierarchy); previously minor (#3398: persistent screen paper colors; parity estimates unchanged); previously minor (#3693: additional Delete Previous Sentence command and shortcut; Word-parity estimates unchanged)
> **CLI path update:** 2026-11-04 · Options before a non-Unicode input filename no longer make the CLI reject that filename; text option values still require Unicode; `run --file` and `run --script` retain native paths. No ranked gap or readiness estimate changes.
> **Floating anchor row segments:** 2026-11-07 · A floating anchor after a manual page/column break counts visible content on the far side of the same wrapped row. Marker-only cover anchors retain their previous-page rule. Synthetic picture spacing, placement and history controls; no new native Word measurement. Readiness estimates unchanged.
@@ -153,6 +153,8 @@ Ranked, to beta (detail and remaining milestones in [docs/roadmap.md](docs/roadm
## Progress log
+- 2026-11-18: DOCX validation reports unattached custom XML schemas in coverage notes because desktop Word opens packages with those references cleanly. Inline custom XML inside revision or move wrappers still fails under `CUSTOMXML-SCHEMA`.
+
- 2026-10-30: Home › Paste is named "Paste" for screen readers: its hint adds the key as the platform writes it ("Paste (Ctrl+V)" on Windows and Linux), where the name carried macOS's "⌘V" on every platform. The status bar's page count hints Go To with the platform's key too. Readiness estimates unchanged.
- 2026-11-17: File formats, codecs and protocols now come from the shared libraries (storytold/craft-libs#778): legacy code pages (craft-codepage, #6785), plain-text encoding detection (craft-mime, #6950), the ZIP entry-count guard (craft-zip, #6948), Read Aloud's Speech Dispatcher wire format (craft-ssip, #6951), picture probes for clipboard DIBs, JPEG memory, PNG and WebP (craft-image-codecs, #6949, #6955) and the MCP stdio server (craft-mcp-server, #6956), all with craft-libs pinned at main `93dac78c` (#6954, #6960). Opening documents and pictures behaves as before, except that large non-interleaved JPEGs are refused sooner (a 4:4:4 picture from about 60 Mpx, was 67 Mpx), invalid PNGs are refused more strictly, a lossless WebP's transparency is now seen, and MCP clients get tool errors for unknown or mistyped arguments and a 1,000-message batch cap (docs/mcp.md). The old code stays as test-only references the shared code is checked against.
@@ -953,6 +955,7 @@ MATH glyphs that reference the same construction now share its immutable variant
| Date | Change | Summary |
|---|---|---|
+| 2026-11-18 | trivial | DOCX validation reports unattached custom XML schemas in coverage notes. Inline custom XML inside revision or move wrappers still fails under `CUSTOMXML-SCHEMA`. |
| 2026-11-12 | minor | #5875 round 15: gate every owner root, report unresolved custom-property checks, suppress unused-comment absence on incomplete memberships, count unowned exclusions as out of scope, and harden the lexical contract gate; synthetic controls only, readiness estimates unchanged |
| 2026-11-12 | minor | #5875 W2: roots, profile and supporting sources use explicit resolution states; content-type fallback rejects competing candidates. Remaining redesign work is outstanding; synthetic controls only. |
| 2026-11-12 | minor | Validator representation lane: decimal/hex identity keys and lexical relationship/style types; ownership migration stopped before changing seven conflicting existing test expectations (#5875). Synthetic controls; no readiness estimate changed. |
diff --git a/crates/validate/observation-contracts.md b/crates/validate/observation-contracts.md
index 97e3cd9e14..6709dbd668 100644
--- a/crates/validate/observation-contracts.md
+++ b/crates/validate/observation-contracts.md
@@ -96,7 +96,7 @@ Recorded reader pairs (exact shapes in the policy):
| 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.append*1,access.into_complete_set*1,access.invalidate*1,access.is_complete*1,access.prefix*1,access.project*1,field.collapsed_names*2,field.content_types*1,field.entries*1,field.parts*2,type.HashSet*2,type.Observed*4,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_set*1,access.missing*1,access.prefix*2,field.comment_defs*1,field.comment_refs*2,field.contexts*3,field.entries*1,type.HashMap*1,type.HashSet*3,type.Observed*1 | 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; custom-XML Errors and informational unused-comment coverage retain the shipped package-registry policy | independent |
+| lib.rs::report_unreferenced_comments | ID-COMMENT-REF | access.into_complete_set*1,access.missing*1,access.prefix*2,field.comment_defs*1,field.comment_refs*2,field.contexts*3,field.entries*1,type.HashMap*1,type.HashSet*3,type.Observed*1 | 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.prefix*4,field.content_types*2,field.footer_refs*2,field.header_refs*2,field.incomplete*1,field.rels*1,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.rels*2,lookup.entry_by_name*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::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 |
@@ -116,7 +116,7 @@ Recorded reader pairs (exact shapes in the policy):
| lib.rs::check_commentex | COMMENTEX-LINK | access.into_complete_set*3,access.missing*4,access.prefix*1,field.comment_para_ids*2,field.entries*4,type.HashSet*3,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_ids*1,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_custom_xml | CUSTOMXML-SCHEMA | access.into_complete_set*2,access.missing*1,field.content_types*3,field.contexts*2,field.entries*3,lookup.content_unavailable*1,parser.parse_attached_schemas*1,parser.parse_custom_xml_schemas*1,type.CompleteSet*1,type.HashSet*3,type.Observed*2,type.Vec*3 | 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; custom-XML Errors and informational unused-comment coverage retain the shipped package-registry policy | CUSTOMXML-SCHEMA |
+| lib.rs::check_custom_xml | CUSTOMXML-SCHEMA | access.into_complete_set*2,access.missing*1,field.content_types*3,field.contexts*2,field.entries*3,lookup.content_unavailable*1,parser.parse_attached_schemas*1,parser.parse_custom_xml_schemas*1,type.CompleteSet*1,type.HashSet*3,type.Observed*2,type.Vec*3 | 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.HashMap*2,type.HashSet*2 | 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.missing*1,type.CompleteSet*1,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.missing*1,type.CompleteSet*1,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 |
diff --git a/crates/validate/src/lib.rs b/crates/validate/src/lib.rs
index 2c0d8ae262..a7543c06a0 100644
--- a/crates/validate/src/lib.rs
+++ b/crates/validate/src/lib.rs
@@ -479,8 +479,9 @@ pub(crate) const STRUCT_DELTEXT: RuleSpec = RuleSpec { id: "STRUCT-DELTEXT", sev
/// `STRUCT-MOVE-UNPAIRED`: unpaired move range starts/ends, mismatched move names, or duplicate
/// move range-start ids. Observed (web): move semantics silently dropped, so Warning.
pub(crate) const STRUCT_MOVE_UNPAIRED: RuleSpec = RuleSpec { id: "STRUCT-MOVE-UNPAIRED", severity: Severity::Warning, evidence: Evidence::Observed };
-/// `CUSTOMXML-SCHEMA`: a custom-XML schema reference not attached in settings, or inline
-/// `w:customXml` inside a revision/move wrapper. MS-OI29500: Word will not open.
+/// `CUSTOMXML-SCHEMA`: inline `w:customXml` inside a revision or move wrapper. MS-OI29500
+/// documents that Word will not open it. Desktop Word opens files with unattached custom XML
+/// schema references cleanly, so those references are reported as informational coverage.
pub(crate) const CUSTOMXML_SCHEMA: RuleSpec = RuleSpec { id: "CUSTOMXML-SCHEMA", severity: Severity::Error, evidence: Evidence::MsDocumented };
/// `MEDIA-MAGIC`: an image whose bytes do not match its extension/type. Observed: Word web opens
/// but the picture does not render — content lost, no format-sniffing rescue.
@@ -2675,7 +2676,7 @@ fn report_unreferenced_comments(pkg: &Package, xml: &XmlScan, acc: &mut Acc) {
collections: "access.into_complete_set*1,access.missing*1,access.prefix*2,field.comment_defs*1,field.comment_refs*2,field.contexts*3,field.entries*1,type.HashMap*1,type.HashSet*3,type.Observed*1";
scope: "DECLARED EXCEPTION: PackageRegistryContext for established-unowned own declarations; reached declarations keep their selected registry; never grants story ownership";
loss: "source unavailable or malformed; XML event/depth budget; category allocation cap; ownership discovery loss; graph traversal/fanout budget";
- fallback: "unknown membership or registry source suppresses dependent absence; custom-XML Errors and informational unused-comment coverage retain the shipped package-registry policy";
+ fallback: "unknown membership or registry source suppresses dependent absence; informational coverage retains the package-registry policy";
package_loss: "independent";
}
@@ -3767,14 +3768,14 @@ fn read_comments_ids(entry: &package::Entry, xml: &XmlScan, cap: usize, acc: &mu
Some((entry.name.clone(), ids, !capped))
}
-/// Verify that custom XML itemProperties parts only reference schemas declared in settings.xml.
+/// Report custom XML item-properties schema references missing from settings.xml as coverage.
fn check_custom_xml(pkg: &Package, xml: &XmlScan, acc: &mut Acc) {
observation_contract! {
rules: "CUSTOMXML-SCHEMA";
collections: "access.into_complete_set*2,access.missing*1,field.content_types*3,field.contexts*2,field.entries*3,lookup.content_unavailable*1,parser.parse_attached_schemas*1,parser.parse_custom_xml_schemas*1,type.CompleteSet*1,type.HashSet*3,type.Observed*2,type.Vec*3";
scope: "DECLARED EXCEPTION: PackageRegistryContext for established-unowned own declarations; reached declarations keep their selected registry; never grants story ownership";
loss: "source unavailable or malformed; XML event/depth budget; category allocation cap";
- fallback: "unknown membership or registry source suppresses dependent absence; custom-XML Errors and informational unused-comment coverage retain the shipped package-registry policy";
+ fallback: "unknown membership or registry source suppresses dependent absence; informational coverage retains the package-registry policy";
package_loss: "CUSTOMXML-SCHEMA";
}
@@ -3914,12 +3915,9 @@ fn check_custom_xml(pkg: &Package, xml: &XmlScan, acc: &mut Acc) {
acc.set_incomplete();
}
for uri in uris {
- if schemas.iter().any(|set| set.missing(&uri)) {
- acc.add(
- "CUSTOMXML-SCHEMA",
- Some(e.name.clone()),
- format!("custom XML part {} declares schema {uri}, which is not attached in settings.xml", e.name),
- );
+ // Unknown package identity still prevents proving that a schema is unattached.
+ if schemas.iter().any(|set| set.missing(&uri)) && !acc.absence_suppressed(CUSTOMXML_SCHEMA.id, CUSTOMXML_SCHEMA.severity) {
+ acc.note(format!("custom XML part {} declares schema {uri}, which is not attached in settings.xml", e.name));
}
}
}
@@ -5661,7 +5659,10 @@ mod round5_completeness_tests {
let report = validate_bytes_limited(&bytes, Limits { facts: 1, ..Limits::default() });
eprintln!("schema cap: {report:?}");
assert!(!report.findings.iter().any(|f| f.rule == "CUSTOMXML-SCHEMA"), "{report:?}");
- assert!(!validate_bytes(&bytes).findings.iter().any(|f| f.rule == "CUSTOMXML-SCHEMA"));
+ assert!(!report.coverage_notes.iter().any(|n| n.ends_with("which is not attached in settings.xml")), "{report:?}");
+ let complete = validate_bytes(&bytes);
+ assert!(!complete.findings.iter().any(|f| f.rule == "CUSTOMXML-SCHEMA"), "{complete:?}");
+ assert!(!complete.coverage_notes.iter().any(|n| n.ends_with("which is not attached in settings.xml")), "{complete:?}");
}
/// Threading joins use each direction's definition completeness, including missing parse results.
@@ -5772,6 +5773,9 @@ mod round5_completeness_tests {
if report.findings.iter().any(|f| f.rule == rule) {
manufactured.push(kind);
}
+ if kind == "settings" {
+ assert!(!report.coverage_notes.iter().any(|n| n.ends_with("which is not attached in settings.xml")), "{report:?}");
+ }
assert!(report.findings.iter().any(|f| f.rule == "XML-MALFORMED"), "{report:?}");
}
assert!(manufactured.is_empty(), "false absences from unclosed sources: {manufactured:?}");
@@ -5975,7 +5979,10 @@ mod round5_completeness_tests {
for part in ["word/header.xml", "word/styles.xml", "word/numbering.xml"] {
assert!(report.findings.iter().any(|f| f.rule == "NUM-DANGLING" && f.part.as_deref() == Some(part)), "{report:?}");
}
- assert!(report.findings.iter().any(|f| f.rule == "CUSTOMXML-SCHEMA"), "{report:?}");
+ assert!(
+ report.coverage_notes.iter().any(|n| n == "custom XML part word/props.xml declares schema urn:B, which is not attached in settings.xml"),
+ "{report:?}"
+ );
}
/// An unexamined content-type declaration cannot establish that an owner is non-XML.
@@ -6472,9 +6479,18 @@ mod round7_owner_discovery_tests {
("word/ids.xml", package::COMMENTS_IDS_CONTENT_TYPE, r#""#.into()),
], rel("header", "header.xml") + &rel("styles", "styles.xml") + &rel("numbering", "numbering.xml") + &rel("comments", "comments.xml") + &rel("footnotes", "footnotes.xml") + &rel("endnotes", "endnotes.xml") + &rel("settings", "settings.xml") + &rel("customXmlProps", "props.xml") + &rel("commentsExtended", "ex.xml") + &rel("commentsIds", "ids.xml"));
let report = validate_bytes(&bytes);
- for (rule, count) in [("ID-COMMENT-REF", 1), ("REF-NOTE", 2), ("REF-STYLE", 1), ("NUM-DANGLING", 3), ("CUSTOMXML-SCHEMA", 1)] {
+ for (rule, count) in [("ID-COMMENT-REF", 1), ("REF-NOTE", 2), ("REF-STYLE", 1), ("NUM-DANGLING", 3)] {
assert_eq!(report.findings.iter().filter(|f| f.rule == rule).count(), count, "{mode}: {report:?}");
}
+ assert_eq!(
+ report
+ .coverage_notes
+ .iter()
+ .filter(|n| *n == "custom XML part word/props.xml declares schema urn:Missing, which is not attached in settings.xml")
+ .count(),
+ 1,
+ "{mode}: {report:?}"
+ );
for message in ["paraIdParent 00000008", "commentsIds paraId 00000004 has no commentEx", "commentEx paraId 00000003 has no commentsIds"] {
assert!(report.findings.iter().any(|f| f.message.contains(message)), "{mode}: {report:?}");
}
@@ -6828,9 +6844,18 @@ mod round8_fallback_contributor_tests {
("word/ids.xml", package::COMMENTS_IDS_CONTENT_TYPE, r#""#.into()),
], rel("header", "header.xml") + &rel("styles", "styles.xml") + &rel("numbering", "numbering.xml") + &rel("comments", "comments.xml") + &rel("footnotes", "footnotes.xml") + &rel("endnotes", "endnotes.xml") + &rel("settings", "settings.xml") + &rel("customXmlProps", "props.xml") + &rel("commentsExtended", "ex.xml") + &rel("commentsIds", "ids.xml"));
let report = validate_bytes(&bytes);
- for (rule, count) in [("ID-COMMENT-REF", 1), ("REF-NOTE", 2), ("REF-STYLE", 1), ("NUM-DANGLING", 3), ("CUSTOMXML-SCHEMA", 1)] {
+ for (rule, count) in [("ID-COMMENT-REF", 1), ("REF-NOTE", 2), ("REF-STYLE", 1), ("NUM-DANGLING", 3)] {
assert_eq!(report.findings.iter().filter(|f| f.rule == rule).count(), count, "{mode}: {report:?}");
}
+ assert_eq!(
+ report
+ .coverage_notes
+ .iter()
+ .filter(|n| *n == "custom XML part word/props.xml declares schema urn:Missing, which is not attached in settings.xml")
+ .count(),
+ 1,
+ "{mode}: {report:?}"
+ );
for message in ["paraIdParent 00000008", "commentsIds paraId 00000004 has no commentEx", "commentEx paraId 00000003 has no commentsIds"] {
assert!(report.findings.iter().any(|f| f.message.contains(message)), "{mode}: {report:?}");
}
diff --git a/crates/validate/tests/ambiguous_sources.rs b/crates/validate/tests/ambiguous_sources.rs
index 3f72df784d..308be7fd32 100644
--- a/crates/validate/tests/ambiguous_sources.rs
+++ b/crates/validate/tests/ambiguous_sources.rs
@@ -241,7 +241,20 @@ fn styles_fonts_numbering_and_schemas_do_not_use_competing_sources_in_either_ord
d.add_with_override("word/b.xml", ct, b);
d.set_doc_rels(&pair(kind, reverse, same));
let report = validate_bytes(&d.build());
- if same {
+ if kind == "settings" {
+ assert!(findings(&report, &rules).is_empty(), "{report:?}");
+ assert_eq!(
+ report
+ .coverage_notes
+ .iter()
+ .any(|n| n == "custom XML part word/item.xml declares schema urn:missing, which is not attached in settings.xml"),
+ same,
+ "{report:?}"
+ );
+ if !same {
+ unknown(&report, kind, &rules);
+ }
+ } else if same {
assert!(!findings(&report, &rules).is_empty(), "{report:?}");
} else {
unknown(&report, kind, &rules);
diff --git a/crates/validate/tests/validate.rs b/crates/validate/tests/validate.rs
index bf054a623a..d78e6f8372 100644
--- a/crates/validate/tests/validate.rs
+++ b/crates/validate/tests/validate.rs
@@ -2887,43 +2887,54 @@ fn duplicate_move_start_id_fires() {
assert_finding(&report, "STRUCT-MOVE-UNPAIRED", Some("word/document.xml"));
}
-#[test]
-fn custom_xml_schema_unattached() {
+fn custom_xml_schema_doc(attached: bool) -> Doc {
let mut d = Doc::minimal();
d.add_with_override(
"customXml/itemProps1.xml",
CT_CUSTOMXML_PROPS,
format!(
- r#""#
+ r#""#
),
);
- d.add_with_override("word/settings.xml", CT_SETTINGS, format!(r#""#));
- let report = validate(&d);
- assert_eq!(report.verdict, Verdict::Fail);
- let f = assert_finding(&report, "CUSTOMXML-SCHEMA", Some("customXml/itemProps1.xml"));
- assert_eq!(f.evidence, wordcraft_validate::Evidence::MsDocumented);
+ d.set("customXml/item1.xml", r#" "#);
+ d.set(
+ "customXml/_rels/item1.xml.rels",
+ rels_xml(
+ r#""#,
+ ),
+ );
+ let schema = if attached { r#""# } else { "" };
+ d.add_with_override("word/settings.xml", CT_SETTINGS, format!(r#"{schema}"#));
+ d.set_doc_rels(concat!(
+ r#""#,
+ r#""#,
+ ));
+ d
+}
+
+fn unattached_schema_notes(report: &Report) -> impl Iterator- {
+ report.coverage_notes.iter().map(String::as_str).filter(|note| note.ends_with("which is not attached in settings.xml"))
+}
+
+#[test]
+fn custom_xml_schema_unattached() {
+ let report = validate(&custom_xml_schema_doc(false));
+ assert_eq!(report.verdict, Verdict::Pass, "{report:?}");
+ assert_clean(&report);
+ assert!(!has(&report, "CUSTOMXML-SCHEMA"), "{report:?}");
+ assert!(report.checks_run.contains(&"CUSTOMXML-SCHEMA"), "{report:?}");
+ assert_eq!(
+ unattached_schema_notes(&report).collect::>(),
+ ["custom XML part customXml/itemProps1.xml declares schema urn:example:custom, which is not attached in settings.xml"]
+ );
}
#[test]
fn custom_xml_schema_attached_does_not_fire() {
- let mut d = Doc::minimal();
- d.add_with_override(
- "customXml/itemProps1.xml",
- CT_CUSTOMXML_PROPS,
- format!(
- r#""#
- ),
- );
- d.add_with_override(
- "word/settings.xml",
- CT_SETTINGS,
- format!(r#""#),
- );
- d.set_doc_rels(
- r#""#,
- );
- let report = validate(&d);
- assert!(!has(&report, "CUSTOMXML-SCHEMA"), "{:?}", report.findings);
+ let report = validate(&custom_xml_schema_doc(true));
+ assert_eq!(report.verdict, Verdict::Pass, "{report:?}");
+ assert!(!has(&report, "CUSTOMXML-SCHEMA"), "{report:?}");
+ assert!(unattached_schema_notes(&report).next().is_none(), "{report:?}");
}
#[test]
@@ -3129,7 +3140,7 @@ fn unreadable_content_types_does_not_fire_typed_relationships() {
/// §1 canary (c): an unreadable owner `.rels` (`word/_rels/document.xml.rels`) in a package whose
/// customXml part carries a schema reference the settings part would satisfy must not report
-/// CUSTOMXML-SCHEMA. The settings part is discovered through that `.rels`; when it cannot be read,
+/// the reference as unattached. The settings part is discovered through that `.rels`; when it cannot be read,
/// the attached-schema set is unknown, not empty, so the schema conclusion is skipped and the run is
/// INCOMPLETE.
#[test]
@@ -3154,16 +3165,14 @@ fn unreadable_owner_rels_does_not_fire_custom_xml_schema() {
let zip = claim_entry_method(&d.build(), "word/_rels/document.xml.rels", 12);
let report = validate_bytes(&zip);
assert_eq!(report.verdict, Verdict::Incomplete, "findings: {:?}", report.findings);
- assert!(!has(&report, "CUSTOMXML-SCHEMA"), "an unreadable owner .rels must not make an attached schema look unattached: {:?}", report.findings);
+ assert!(!has(&report, "CUSTOMXML-SCHEMA"), "{report:?}");
+ assert!(unattached_schema_notes(&report).next().is_none(), "an unreadable owner .rels leaves attachment unknown: {report:?}");
}
/// §1 by-construction guard: with no owner scope (no main part), the discovery source for settings
/// is the manifest; when both `_rels/.rels` and `[Content_Types].xml` are unreadable, no main part
-/// exists and the no-owner scope applies, and a customXml part carrying a schema reference must not
-/// fire CUSTOMXML-SCHEMA — the predicate pushes `None` (skip) instead of an empty schema set. Note
-/// this test cannot distinguish the guard by mutation: the second loop enumerates customXml parts by
-/// content type (lib.rs), so an unreadable manifest enumerates none and the false finding cannot
-/// arise either way. It pins the invariant the guard keeps by construction.
+/// exists and the no-owner scope applies. The predicate skips the check since the attached-schema
+/// set is unknown. An unreadable manifest also leaves no typed customXml parts to check.
#[test]
fn no_owner_manifest_unavailable_does_not_fire_custom_xml_schema() {
let mut d = Doc::minimal();
@@ -3185,7 +3194,8 @@ fn no_owner_manifest_unavailable_does_not_fire_custom_xml_schema() {
let zip = claim_entry_method(&zip, "[Content_Types].xml", 12);
let report = validate_bytes(&zip);
assert_eq!(report.verdict, Verdict::Incomplete, "findings: {:?}", report.findings);
- assert!(!has(&report, "CUSTOMXML-SCHEMA"), "an unreadable manifest must not make an attached schema look unattached: {:?}", report.findings);
+ assert!(!has(&report, "CUSTOMXML-SCHEMA"), "{report:?}");
+ assert!(unattached_schema_notes(&report).next().is_none(), "an unreadable manifest leaves attachment unknown: {report:?}");
}
/// Opus N5: the "custom XML schema references were not checked" note is recorded only for an owner
@@ -3563,7 +3573,7 @@ fn glossary_dangling_comment_reference_fires_at_glossary_part() {
}
#[test]
-fn renamed_item_props_part_gets_schema_finding() {
+fn renamed_item_props_part_gets_schema_note() {
let mut d = Doc::minimal();
d.set("[Content_Types].xml", content_types_xml(&[], &[("/customXml/props.xml", CT_CUSTOMXML_PROPS)]));
d.set(
@@ -3575,8 +3585,8 @@ fn renamed_item_props_part_gets_schema_finding() {
);
d.add_with_override("word/settings.xml", CT_SETTINGS, format!(r#""#));
let report = validate(&d);
- assert_eq!(report.verdict, Verdict::Fail);
- assert_finding(&report, "CUSTOMXML-SCHEMA", Some("customXml/props.xml"));
+ assert_eq!(report.verdict, Verdict::Pass, "{report:?}");
+ assert!(unattached_schema_notes(&report).any(|note| note.starts_with("custom XML part customXml/props.xml ")), "{report:?}");
}
#[test]
@@ -3851,8 +3861,8 @@ fn custom_xml_props_part_named_without_xml_is_decoded_by_content_type() {
);
d.add_with_override("word/settings.xml", CT_SETTINGS, format!(r#""#));
let report = validate(&d);
- assert_eq!(report.verdict, Verdict::Fail, "findings: {:?}", report.findings);
- assert_finding(&report, "CUSTOMXML-SCHEMA", Some("customXml/props.dat"));
+ assert_eq!(report.verdict, Verdict::Pass, "{report:?}");
+ assert!(unattached_schema_notes(&report).any(|note| note.starts_with("custom XML part customXml/props.dat ")), "{report:?}");
}
#[test]
@@ -4050,9 +4060,12 @@ fn custom_xml_schemas_are_checked_per_owner() {
d.entries.reverse();
}
let report = validate(&d);
- assert_eq!(report.verdict, Verdict::Fail, "reverse {reverse}: {:?}", report.findings);
- assert_finding(&report, "CUSTOMXML-SCHEMA", Some("customXml/itemPropsMain.xml"));
- assert_finding(&report, "CUSTOMXML-SCHEMA", Some("customXml/itemPropsGloss.xml"));
+ assert_eq!(report.verdict, Verdict::Fail, "reverse {reverse}: {report:?}");
+ assert_eq!(report.findings.len(), 1, "{report:?}");
+ assert_finding(&report, "CT-MISMATCH", Some("customXml/itemPropsGloss.xml"));
+ for part in ["customXml/itemPropsMain.xml", "customXml/itemPropsGloss.xml"] {
+ assert!(unattached_schema_notes(&report).any(|note| note.starts_with(&format!("custom XML part {part} "))), "{report:?}");
+ }
}
}
@@ -5423,15 +5436,19 @@ fn round4_shared_custom_xml() {
let single = validate_bytes(&d.build());
assert_eq!(single.verdict, Verdict::Pass, "{single:?}");
assert!(!has(&single, "CUSTOMXML-SCHEMA"), "{single:?}");
+ assert!(unattached_schema_notes(&single).next().is_none(), "{single:?}");
round3_add_rel(&mut d, "glossary", "rH", "header", "shared-header.xml");
let shared = validate_bytes(&d.build());
- assert_eq!(shared.verdict, Verdict::Fail, "{shared:?}");
- assert_eq!(shared.findings.iter().filter(|f| f.rule == "CUSTOMXML-SCHEMA").count(), 1, "{shared:?}");
- assert_finding(&shared, "CUSTOMXML-SCHEMA", Some("customXml/itemProps.xml"));
+ assert_eq!(shared.verdict, Verdict::Pass, "{shared:?}");
+ assert_eq!(
+ unattached_schema_notes(&shared).collect::>(),
+ ["custom XML part customXml/itemProps.xml declares schema urn:shared, which is not attached in settings.xml"]
+ );
d.set("word/gloss-settings.xml", format!(r#""#));
let satisfied = validate_bytes(&d.build());
assert_eq!(satisfied.verdict, Verdict::Pass, "{satisfied:?}");
assert!(!has(&satisfied, "CUSTOMXML-SCHEMA"), "{satisfied:?}");
+ assert!(unattached_schema_notes(&satisfied).next().is_none(), "{satisfied:?}");
}
// Round 6: relationship classification and the unsupported Strict profile.
diff --git a/docs/file-format-parity.md b/docs/file-format-parity.md
index fd68ebfa9f..734a30ac82 100644
--- a/docs/file-format-parity.md
+++ b/docs/file-format-parity.md
@@ -7,7 +7,7 @@
> **2026-11-05:** DOCX paragraph `w:adjustRightInd` keeps its default and explicit values through style resolution and schema-ordered repeated saves.
-> **Validation status:** 2026-11-12 · minor · #5875 round 18: package entry and availability lookups carry explicit absence/unknown states; the observation gate resolves bounded helper/accessor aliases and pins completeness predicates and reader derives. Qualified standard macros and four inert attributes are supported; named-field bindings and trait bodies remain closed grammar. Synthetic controls only; independent endpoint review remains required and readiness estimates are unchanged.
+> **Validation status:** 2026-11-18 · trivial · DOCX validation reports unattached custom XML schemas in coverage notes. Inline custom XML inside revision or move wrappers still fails under `CUSTOMXML-SCHEMA`. Independent endpoint review remains open.
> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-11-13 · **Change:** trivial (a rounded rectangle without a corner size of its own takes the preset's default, a sixth of its shorter side, #6546); previously trivial (DOCX section line numbering: `w:lnNumType` without a positive `w:countBy` stays off, #6209); previously trivial (ODT: a paragraph default style that names no font keeps the document's default font, #4683); previously trivial (ODT columns stating only their shares); previously trivial (ODT font size for every script); previously trivial (ODT text turning off what its style turns on); previously trivial (ODT custom styles with an outline level); previously trivial (ODT pictures keep the size their file gives); previously trivial (ODT frames keep the page they are anchored to); previously trivial (ODT: a document's language kept when its styles are written from the model); previously trivial (ODT table and row backgrounds); previously trivial (ODT row: how tab stops are saved, corrected); previously trivial (RTF footnotes, endnotes and comments, #1053); previously trivial (XML line ends in text normalised, #5897); previously trivial (ODT pictures offered in several formats); previously trivial (ODT heading text of another size); previously trivial (built-in citation source lookups, #4888; current-main progress records retained); previously trivial (ODT: no settings for what the standard leaves open); previously trivial (picture brightness, contrast and transparency); previously trivial (ODT paragraph groups kept as read); previously trivial (ODT paragraphs with charts kept as read); previously trivial (ODT sections in cells and at empty paragraphs); previously trivial (ODT element audit); previously trivial (ODT reference marks written as such); previously trivial (ODT hidden sections stay hidden; lists kept as read); previously trivial (ODT manifest lists every file); previously trivial (ODT paragraphs with bookmarks, notes, objects and page-anchored frames written as read); previously trivial (ODT paragraphs with text boxes written as read); previously trivial (ODT paragraphs with comments and tracked changes written as read); previously trivial (ODT paragraphs with pictures and shapes written as read); previously trivial (ODT sections inside text boxes); previously trivial (ODT definitions sharing a name, sections around tables, chart replacement pictures, note citations, stacking order); previously trivial (ODT form definitions and indexes written as read); previously trivial (ODT gradient angles by the file's version; deviation documented); previously minor (ODT: unedited tables, pages, sections, properties and declarations written as read; no-edit loss gate); previously minor (ODT: unedited paragraphs and style definitions written as read); previously trivial (ODT author fields said not fixed); previously trivial (ODT default text colour; covered cells' content); previously trivial (ODT widow control profile case; tabs from the indent kept); previously trivial (ODT span kerning; note reference formatting; notes starting with a tab); previously trivial (ODT fixed and sender fields); previously trivial (ODT: table styles saved into their cells; ODT tables carry no Word table style; section column balance); previously trivial (ODT interpretation profile: the standard is law, what it leaves open (including unstated page margins) follows WordCraft, LibreOffice or custom settings); previously trivial (ODT form controls keep their place on the line and text areas their lines; custom shapes keep their geometry); previously trivial (ODT in-line frames placed against the text; in-line pictures saved standing on the baseline); previously trivial (ODT charts written back as they were while unchanged; frames' drawn outline; default header height); previously trivial (ODT header rows only where they repeat); previously trivial (ODT padding without a border; unequal columns; column breaks); previously trivial (ODT lines of only pictures laid out as LibreOffice does; default page without a layout); previously trivial (ODT pictures alone in a paragraph keep its size; in-line frames raised under an inherited paragraph relation); previously trivial (ODT tables fit the margins and keep their space above and below; header spacing kept); previously trivial (ODT frames anchored and placed by their style); previously trivial (ODT default font size saved; page-anchored frames placed from the page; text box paragraph styles kept; empty paragraphs keep their size); previously trivial (ODT default font size; locale-ordered dates); previously trivial (ODT page background pictures); previously trivial (ODT tables fixed layout; tables starting a page); previously trivial (emphasis marks: model, layout, DOCX `w:em`, ODT `style:text-emphasize`, `format.emphasisMark`); previously trivial (ODT variables as SET/REF fields; character styles keep what they turn off); previously trivial (ODT styles keep what they turn off; WMF/EMF pictures kept; pictures in text boxes shown by LibreOffice); previously trivial (ODT unstated page margins are LibreOffice's 2 cm; drawings outside a paragraph join the next one); previously trivial (ODT placeholders as content controls, template dates, user name fields, unsized pages, style-only templates, found with LibreOffice's own templates); previously trivial (ODT hidden form controls kept; `.ott` templates opened and saved); previously trivial (ODT fidelity re-estimated at ~90%; a kept form control made another kind is saved as that kind); previously trivial (ODT form control sizes and buttons kept); previously trivial (ODT turned text in cells and text boxes); previously trivial (ODT macros and unknown package parts kept); previously trivial (ODT table cell formulas as formula fields); previously trivial (ODT custom shapes drawn from their own geometry); previously trivial (ODT bibliography marks as citations of sources); previously trivial (ODT linked text boxes); previously trivial (ODT picture crops and contour wrapping); previously trivial (ODT fidelity re-estimated at ~85%); previously trivial (ODT custom document properties and user fields as DOCPROPERTY); previously trivial (ODT connectors read and written glued); previously trivial (ODT borders around text read and written); previously trivial (ODT index marks read and written as XE fields; an index held around its entries updates); previously trivial (ODT ruby read and written); previously trivial (ODT page breaks after a paragraph, kept lines, widow control, hyphenation, table alignment and width and row heights); previously trivial (in-line drawings raised or lowered by their run's position; ODT in-line frames keep their place on the baseline; leading's space after the last line; text box borders shown by LibreOffice); previously trivial (ODT form controls opened and saved as content controls); previously trivial (password-protected ODT opened and saved); previously trivial (ODT headers and footers keep their shapes, text boxes, charts and embedded objects on save); previously trivial (ODT embedded spreadsheets and OLE objects kept whole instead of lost; flat ODT sub-documents valid `office:document`s); previously trivial (ODT charts in drawing groups drawn on open); previously trivial (ODT charts opened and saved as editable charts; flat ODT sub-documents no longer end the body); previously trivial (ODT leading read as an at-least spacing); previously trivial (ODT tracked formatting changes; changed regions named by `xml:id`); previously trivial (ODT drop caps; tab stops no longer drop a paragraph's background); previously trivial (flat ODT `.fodt` opened and saved; ODT fidelity re-estimated at ~80%); previously trivial (ODT page settings; a footnote no longer takes a footer's text); previously trivial (ODT dates in their formats, sequences, chapters and references); previously trivial (ODT bookmarks over text); previously trivial (ODT tables of contents and indexes; ODT fidelity re-estimated); previously trivial (ODT polygons, polylines and paths); previously trivial (ODT arrowheads, dashes and gradients); previously trivial (ODT groups of shapes and pictures); previously trivial (ODT rotated and mirrored shapes and pictures); previously trivial (ODT drawing shapes read and written); previously trivial (ODT text box frames keep their line, fill, padding and fit); previously trivial (ODT Asian and complex-script fonts); previously trivial (ODT right-to-left paragraphs); previously trivial (ODT text boxes kept); previously trivial (ODT unnumbered headings detached from the outline); previously trivial (ODT contextual spacing and layout settings); previously trivial (ODT custom character styles kept); previously trivial (ODT list level positions); previously trivial (ODT custom paragraph styles kept); previously trivial (ODT equations written as formula objects); previously trivial (ODT numbered headings written as headings); previously trivial (ODT floating pictures); previously trivial (ODT paragraph borders and background); previously trivial (ODT heading numbering); previously trivial (ODT font-face names); previously trivial (ODT table cell borders and padding); previously trivial (ODT heading, title, quote and preformatted styles keep their look); previously trivial (ODT tab stops read and written); previously trivial (ODT character formatting read and written); previously trivial (ODT lists keep their number formats, bullets and identity); previously trivial (ODT comments read and written); previously trivial (ODT footnotes and endnotes read and written); previously trivial (ODT headers, footers and text fields written; fields read); previously trivial (ODT paragraph spacing, indents and line spacing read and written); previously trivial (Replace and Remove Table of Contents treat Word's title above a section break as Word does, #4041); previously trivial (a password-protected .docx opened from the file manager asks for its password also when the startup document was replaced, #5299); previously minor (`w:altChunk` brought in on open; MHT opens; HTML style sheets, paragraph margins and Word's web-page defaults; broader corpus qualification and readiness estimates unchanged); previously trivial (a VML horizontal rule (`o:hr`) is drawn across its line at Word's measured width and kept on save, with rotation and flips, #3956); previously trivial (soft edges on a see-through solid fill fade from the fill's own opacity, #1600); previously trivial (DOCX table rows and cells inside selected alternate-content branches survive open and repeated saves (#5219); broader corpus qualification and readiness estimates unchanged); previously trivial (a list inside a Markdown block quote is written back inside the quote); previously trivial (arrowheads keep their kind, width and length and are drawn at Word's sizes); previously trivial (.doc: the default font is the stylesheet's standard font (Aptos in Word 365 files), #5066); previously trivial (a paragraph naming an undefined style is formatted as Normal, as in Word, #5077); previously trivial (a hyperlinked TOC writes its page numbers as `PAGEREF _Toc… \h` fields, as Word does, #5097); previously trivial (HTML import ends the empty comments and at once, #5040); previously trivial (chart and SmartArt text the font lacks is drawn in a fallback face, so Chinese labels no longer show boxes, #4720); previously trivial (bibliography sources keep a corporate author (`b:Corporate`): read, written, cited and listed whole, #4848); previously trivial (custom-property bookmark-link preservation, #4767); previously trivial (note conversion preserves content with an ordered reference/run walk, #4750); previously trivial (DOCX comment-ID save lookups); previously trivial (built-in heading styles have their outline level without `w:outlineLvl`, #4696); previously trivial (DOCX comment ranges inside footnotes and endnotes are kept on read, #4548); previously trivial (RTF import and export keep Windows and Enhanced Metafile pictures (`\wmetafile`, `\emfblip`), #4259); previously trivial (#4658 bounds nested Markdown reference-label work); previously trivial (HTML import keeps preformatted lines with CR or CRLF input newlines, #4810); previously trivial (DOCX parts stored under another casing keep their embedded fonts through a save, and a private save of a kept glossary escapes the attribute values it rewrites; previously trivial: the `.doc` reader logs what its copy budget leaves out, once a kind per document; importers bound hostile expansion: font names, links, ODS repeats, LaTeX wrappers, Markdown delimiters, #3692/#3713; previously trivial: repeated DOCX style IDs: save/reopen regression; previously trivial: Markdown code spans keep line-broken text literal, #3738; previously trivial: Arabic list labels: `arabicAlpha` and `arabicAbjad` draw the 28 Arabic letters (alphabetical and abjad order), doubling past the last letter; Hebrew, Hindi, Thai and Vietnamese still show decimal (`doc::section::tests::arabic_letters_count_in_both_orders`); previously trivial: localized TOC style ids read as the TOC styles, and a TOC in columns keeps its layout through Update Table, #3889; previously trivial: cu20we: outline caps; previously trivial: a relationship the markup names without the prefix is read as it wrote: an unqualified `id` on an element that carries a relationship names that relationship, and the writer keeps the attribute with the id the new package holds the part under; an ordinary `id` — a VML shape's, a drawing's — names no part; previously trivial: the reader takes the relationship ids the markup refers to from the relationship attributes of the main document it has already parsed, so a document with many relationships opens in the time its part takes, #3411; previously trivial: a table cell span from a `.json` file stays within 63 columns through Insert Column and Merge Cells, #3637; previously trivial: the file commands that change the document are checked on a protected document, the protection of a protected document needs an explicit stop, the session author can't change through `file.setAuthor` under protection (the CLI's `--author` uses the same protection check), and the post-check compares the settings and the metadata; previously trivial: a document with many content controls saves in the time the controls take, #13; previously trivial: `majorBidi`/`minorBidi` theme fonts follow the settings' theme font language, as measured in Word; previously trivial: Word signature lines are kept on save, still signable; previously trivial: Times New Roman keeps Liberation Serif under the roman-font rule; previously trivial: shape gradients and transparency, #1500; previously trivial: a folder that keeps no Unix modes, such as a NAS share mounted by GVFS, still takes a save, #3003; previously trivial: a text frame in the paragraph defaults frames nothing, #2360; previously trivial: table style band sizes written, a style without them unbanded as in Word, #3415; previously trivial: HTML export writes ruby (furigana, phonetic guides) and HTML import reads it back, #1681; previously trivial: RTF import decodes the East Asian multibyte code pages, #1653; previously trivial: PDF export: lam-alef drawn as two glyphs at one x extracts in reading order, #2310; previously trivial: native .json stores pictures and kept parts as base64, #586 follow-up; previously trivial: ODT headers and footers read from each master page, #863; previously trivial: RTF import compares heading and code formatting with the file's stylesheet; previously trivial: text typed into a content control takes the control's formatting; localized placeholder styles recognised; previously trivial: forms protection keeps its content controls: no inserting, Properties or Remove Content Control; previously trivial: Word XML and web pages saved as `.doc` open by what they hold, #2853; previously trivial: a VML shape in a header cell is always placed on the page, user-checked in Word for Mac, #1775; previously trivial: `w:sym` characters keep their symbol font when the text's font changes and are written back as `w:sym`, #2036; previously trivial: RTF export writes sections (gap 19); previously trivial: ODT export writes sections (gap 19); previously trivial: two lines in one and horizontal in vertical (`w:eastAsianLayout`) kept on save; previously trivial: PDF outline targets follow leading page breaks; previously trivial: positional tabs `w:ptab` read and kept on save, #2367; previously trivial: DOCX: mixed right-to-left runs split and marked `w:rtl` with their language, #1543; previously trivial: `w:doNotTrackMoves` round-trips and turns move tracking off; previously trivial: legacy outline, shadow, emboss and imprint text effects drawn, #2534; previously trivial: DOCX glossary documents (building blocks) read, kept and written; previously trivial: cached field results keep their visible run formatting; previously trivial: cached REF results retain hyperlink destinations; previously trivial: CLI conversions can explicitly refresh fields; previously trivial: a copied equation also goes in the clipboard's MathML formats, #1297; previously trivial: a pasted HTML `
` is an indented paragraph, not the Quote style, #1270); previously trivial: every table style part round-trips, #714; previously trivial: VML freeforms read and kept on save; previously trivial: multi-paragraph field instructions no longer add blank lines; previously trivial: `flowChartOr` draws its circle and cross spokes, as in Word; previously trivial: RTF: Mac OS Roman and DOS text, #1653; previously trivial: VML text boxes keep their internal margins, fit to their text and vertical alignment; hidden drawings not shown; previously trivial: PDF export draws horizontal and vertical lines inside groups, #1474; previously trivial: symbol-font text exported as Unicode, #776; previously trivial: text-box margins, Resize shape to fit text and freeforms in groups, #743; previously trivial: formatted paste from the system clipboard's HTML and RTF, #687; previously trivial: independent complex-script formatting inheritance and round-trip regression tests; previously trivial: import/export fixes for TXT, RTF, ODT, HTML and LaTeX, #433–#440; previously major: first version; every format Word reads or writes, measured from the readers and writers on origin/main) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4, plus Word for Windows' extra formats
> **CLI path update:** 2026-11-04 · Options before a non-Unicode input filename no longer make the CLI reject that filename; text option values still require Unicode; `run --file` and `run --script` retain native paths. No ranked gap or readiness estimate changes.
@@ -341,6 +341,7 @@ For field results, the engine parser treats a backslash in quoted arguments as e
| Date | Change | Summary |
|---|---|---|
+| 2026-11-18 | trivial | DOCX validation reports unattached custom XML schemas in coverage notes. Inline custom XML inside revision or move wrappers still fails under `CUSTOMXML-SCHEMA`. |
| 2026-11-13 | trivial | A rounded rectangle without a corner size of its own (`roundRect` with an empty `a:avLst`) takes the preset's default `adj` of 16667, a sixth of its shorter side; it was drawn with 16%. Measured in Word for Windows: such a shape of 300 x 100 pt has corners of 16.67 pt, one of 300 x 40 pt of 6.67 pt and one of 60 x 150 pt of 10 pt (#6546) (`doc::connector::tests::corner_radius_follows_the_shorter_side`). |
| 2026-11-12 | minor | #5875 round 18: package entry and availability lookups carry explicit absence/unknown states; the observation gate resolves bounded helper/accessor aliases and pins completeness predicates and reader derives. Qualified standard macros and four inert attributes are supported; named-field bindings and trait bodies remain closed grammar. Synthetic controls only; independent endpoint review remains required and readiness estimates are unchanged. |
| 2026-11-12 | minor | #5875 round 15: gate every owner root, report unresolved custom-property checks, suppress unused-comment absence on incomplete memberships, count unowned exclusions as out of scope, and harden the lexical contract gate; synthetic controls only, readiness estimates unchanged |
diff --git a/docs/gaps.md b/docs/gaps.md
index da74a577b2..efc28d4eb6 100644
--- a/docs/gaps.md
+++ b/docs/gaps.md
@@ -3,7 +3,7 @@
> **CLI path update:** 2026-11-04 · Options before a non-Unicode input filename no longer make the CLI reject that filename; text option values still require Unicode; `run --file` and `run --script` retain native paths. No ranked gap or readiness estimate changes.
-> **Validation status:** 2026-11-12 · minor · #5875 round 18: package entry and availability lookups carry explicit absence/unknown states; the observation gate resolves bounded helper/accessor aliases and pins completeness predicates and reader derives. Qualified standard macros and four inert attributes are supported; named-field bindings and trait bodies remain closed grammar. Synthetic controls only; independent endpoint review remains required and readiness estimates are unchanged.
+> **Validation status:** 2026-11-18 · trivial · DOCX validation reports unattached custom XML schemas in coverage notes. Inline custom XML inside revision or move wrappers still fails under `CUSTOMXML-SCHEMA`. Independent endpoint review remains open.
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-15 · **Change:** trivial (the Paste button is named "Paste" for screen readers, without macOS's key on other platforms; the status bar's Go To hint shows the platform's key); previously trivial (#4: a missing font its publisher gives away names the download page (`font.missing`, Get the Missing Fonts)); previously trivial (gap 4: Word 2003's indent rules beside floating objects, #5939); previously trivial (#5: a list item deleted whole under Track Changes shows its number as deleted text, #4828); previously trivial (clipboard: a copied picture now reaches the system clipboard as PNG, with HTML where the host writes it; a copy of only shapes still stays in WordCraft, #6205); previously trivial (#4501 refactor regressions restored, #4683; no ranked gap changed); previously trivial (#19: ODT default language kept when styles are written from the model); previously trivial (#10 narrowed: a turned inline picture whose file keeps no room for the turn keeps its line to its frame, as in Word); previously trivial (Protected typing boundary lookup counts preceding objects once and indexes editable permission IDs (#3614); caret movement and enforcement policy are unchanged; previously trivial: View windows: several open documents and Switch Windows in the engine; previously trivial: explicit documents keep the editor when recovery discovery finishes; readable recovery controls; previously trivial: text mini toolbar available with the right-click menu, #2959; previously trivial: personal templates in File › New and Save as Word Template, #2852; previously trivial: tracked table/row/cell/section property changes record in WordCraft, narrowing gap 5; previously trivial: a document with many content controls saves in the time the controls take, #13; previously trivial: Format Page Numbers dialog carries Word's number formats and Continue from previous section / Start at, #1113; previously trivial: centred list labels after leading page breaks, #2964; previously trivial: fixed font inputs in four layout controls; previously trivial: a right, centre or decimal tab whose text doesn't fit, or a left tab past the right indent, goes to the next line with its text, #1840; previously trivial: Bullets and Numbering toggle off style-inherited lists at their effective level, including basedOn chains and numbered ListParagraph styles; other paragraphs and list definitions stay unchanged (related to #3459); previously trivial (gap 4: a float anchored right after a page break, before text, is drawn on the new page, #4262); previously trivial (Drawing Canvas members picked and moved on their own, #2637); previously trivial (gap 4: a float anchored on a later page of a long paragraph is drawn there, #4250); previously trivial (#29: typed `\int`, `\sum`… + Space wait for their limits, observed in Word for Windows on #4938, #4917); previously trivial (only the PDF sent to the printer leaves out link annotations; Save these pages as PDF keeps them, #4734; no ranked gap changed); previously trivial (print helpers erase loaded plaintext inputs before driver work, #5710); previously trivial (Windows print submissions use isolated helpers so a cancelled driver cannot block a retry, #5710); previously trivial (print cancellation remains available without a document; sending-boundary limitation clarified, #5710); previously trivial (gap 6: a print job waiting on its driver can be cancelled, #5710; no ranked gap changed); previously trivial (gap 6: the printer list no longer waits on printer drivers, #5710; no ranked gap changed); previously trivial (Page drawing indexes text-box warp lookups per paragraph (#3614)); previously trivial (built-in citation source lookups, #4888; current-main progress records retained); previously trivial (MATH construction reuse, #3630); previously trivial (DOCX `w:adjustRightInd` defaults true and is written in schema order); previously trivial (ink page lookups reuse scanned paragraph prefixes, #3614); previously trivial (#19: ODT settings for what the standard leaves open removed); previously trivial (#19: ODT element audit; files from other applications checked); previously trivial (#11: the dialogs of the mirrored Arabic interface read right to left: label-and-field rows, tables (list columns, the Models table), tile galleries and the Add/Remove arrows follow the reading direction, through one `rtl::Table` helper that draws exactly as before in English; no ranked gap closed, readiness estimates unchanged); previously trivial (#4: fonts that aren't installed are flagged in the font box and status bar); previously trivial (#19: ODT sections inside text boxes kept as read); previously trivial (#19: an ODT saved without edits keeps what WordCraft doesn't model); previously trivial (#19: ODT interpretation profile, WordCraft / LibreOffice / custom); previously trivial (#19: ODT form controls placed and multi-line; custom shapes keep their geometry); previously trivial (#19: ODT in-line frames placed against the text; template instantiation listed as left); previously trivial (#19: ODT charts kept as read; frame outlines; default header height); previously trivial (#19: ODT tables no longer gain repeated header rows); previously trivial (#19: ODT padding without a border, unequal columns, column breaks, picture-only lines); previously trivial (#19: ODT tables' margins and spacing, header spacing, pictures alone in a paragraph); previously trivial (#19: no LibreOffice template changes page count through a save); previously trivial (#19: ODT variables, emphasis marks, page backgrounds, fixed tables, default size); previously trivial (#19: ODT checked against LibreOffice's own templates: placeholders, first-page styles, unsized pages, metafile logos, `.ott`); previously trivial (#19: ODT at ~90%: custom shapes, cell formulas, macros kept, turned text, control sizes and buttons); previously trivial (#19 narrowed: ODT read and written nearly whole; estimate 18–27 h → 10–16 h); previously trivial (#10 narrowed: text in a turned text box is drawn turned with it); previously trivial (gap 19 narrowed: ODT heading numbering read and written); previously trivial (gap 19 narrowed: ODT table borders and padding read and written); previously trivial (gap 19 narrowed: ODT heading style looks read and written); previously trivial (gap 19 narrowed: ODT tab stops read and written); previously trivial (gap 19 narrowed: ODT character formatting read and written); previously trivial (gap 19 narrowed: ODT list formats read and written); previously trivial (gap 19 narrowed: ODT comments read and written); previously trivial (gap 19 narrowed: ODT footnotes and endnotes read and written); previously trivial (gap 19 narrowed: ODT headers and footers written, text fields and paragraph spacing read and written); previously trivial (#8: Options › Language lists Your languages and Add a language… replaces the Language packs table); previously trivial (#8: the missing-pack bar works on a fresh install and counts the caret's language); previously trivial (#8: Language pack languages are in Set Proofing Language, Review › Language and the status bar; built-in proofing is named as such); previously trivial (#20: layout resource caps and linear-time passes (#3867, #3866)); previously trivial (#3 narrowed: a pasted text box story is charged for the formatting it copies); previously trivial (#3 narrowed: a .doc table row keeps one override per cell); previously trivial (#3 narrowed: a .doc file's sections find their paragraphs by index); previously minor (#11: Arabic interface with mirrored shell landed, #1195; hi/id/pt-PT and Hebrew UI remain); previously trivial (#8: language-packs-2 is published and pinned: 75 packs, adding Danish, German (Germany, Austria, Switzerland), Esperanto, Estonian, Persian, Croatian, Hungarian, Norwegian (Bokmål, Nynorsk), Dutch and Swedish (Sweden, Finland); no ranked gap changed); previously trivial (#8: language-packs-1 is published and pinned, 61 packs: Lithuanian, Romanian, Catalan, French, Greek, Slovak, Serbian and Latvian install as Language packs; Dutch, German and the other compounding languages wait on craft-proof; no ranked gap changed); previously minor (#8: Language packs: every other language's spelling and hyphenation installs from File › Options › Language or the missing-pack bar, through the font store; Lithuanian and Romanian are available as a Language pack once language-packs-1 is published; Dutch, Catalan, French, Greek, Slovak, Serbian and Latvian packs wait on craft-proof engine support); previously trivial (gap 8: English spelling reads SCOWL 2026, one dictionary per English, #40, #520, #5205; no ranked gap changed);; previously trivial (DOCX table rows and cells inside selected alternate-content branches survive open and repeated saves (#5219); broader corpus qualification and readiness estimates unchanged); previously trivial (#26 narrowed: MHT opens and `w:altChunk` content is brought in on open; saving MHT remains) previously trivial (gap 8 points at craft-proof in craft-libs, its data in craft-i18n, #5202; no ranked gap changed); previously trivial (arrowheads keep their kind, width and length and are drawn at Word's sizes; no ranked gap changed); previously trivial (.doc default font from the stylesheet's standard font, #5066; no ranked gap changed); previously trivial (a middle or bottom cell of a row split across pages lines up on the first page; no ranked gap changed); previously trivial (tab leader dots spaced and placed as in Word; no ranked gap changed); previously trivial (a list level above counts its first number at the first deeper item; no ranked gap changed); previously trivial (only the PDF sent to the printer leaves out link annotations; Save these pages as PDF keeps them, #4734; no ranked gap changed); previously trivial (documents with links print: the print job leaves out link annotations, #4734; no ranked gap changed; previously trivial: aligned-copy review fixes retain the document axis through scrolling and include secondary selections (#4764)); previously trivial (connector rerouting indexes laid-out object positions once per batch (#3631); previously trivial (custom-property bookmark-link preservation, #4767); previously trivial (Relative font-size commands preserve mixed sizes in the selection (#4903); existing button steps and one-point shortcuts are unchanged; readiness estimates unchanged); previously trivial (Arabic Backspace removes one combining mark and keeps its base letter (#4757); previously trivial (note conversion reference-run membership uses one ordered walk, #4750); previously trivial (DOCX comment-ID save lookups); previously trivial (gap 19: RTF reads and writes WMF and EMF pictures, #4259); previously trivial (#4658 bounds nested Markdown reference-label work); previously trivial (HTML import keeps preformatted lines with CR or CRLF input newlines, #4810); previously trivial (Recipient labels continue across product-sized sheets instead of stopping after the first sheet (#4880)); previously trivial (View windows: several open documents and Switch Windows in the engine; previously trivial: explicit documents keep the editor when recovery discovery finishes; readable recovery controls; previously trivial: text mini toolbar available with the right-click menu, #2959; previously trivial: personal templates in File › New and Save as Word Template, #2852; previously trivial: tracked table/row/cell/section property changes record in WordCraft, narrowing gap 5; previously trivial: a document with many content controls saves in the time the controls take, #13; previously trivial: Format Page Numbers dialog carries Word's number formats and Continue from previous section / Start at, #1113; previously trivial: centred list labels after leading page breaks, #2964; previously trivial: fixed font inputs in four layout controls; previously trivial: a right, centre or decimal tab whose text doesn't fit, or a left tab past the right indent, goes to the next line with its text, #1840; previously trivial: Bullets and Numbering toggle off style-inherited lists at their effective level, including basedOn chains and numbered ListParagraph styles; other paragraphs and list definitions stay unchanged (related to #3459); previously trivial: Russian sorting keeps ё with е and recognises decomposed ё/й; previously trivial: #8: English dialects — en-GB, en-CA, en-AU… flag each other's spellings, #1281; previously trivial: #1: shape gradients and transparency, #1500; previously trivial: text typed into a content control takes the control's formatting; localized placeholder styles recognised; previously trivial: forms protection keeps its content controls: no inserting, Properties or Remove Content Control; previously trivial: clearing a no-match font query keeps the recent heading visible, #2068; previously trivial: line breaking: a slash opening a word travels whole to the next line, #2963; previously trivial: recipient list search and merged-only view, #1576; previously trivial: #2 impact restated: only ink rendering and OLE editing remain; previously trivial: #2 narrowed: native ink nested in groups and drawing canvases kept on save; previously trivial: opening a DOCX no longer copies its pictures; previously trivial: RTF export writes sections (gap 19); previously trivial: ODT export writes sections (gap 19); previously trivial: automatic Asian/Latin and Asian/number spacing laid out, #2358; previously trivial: hint-reliant CJK outlines; previously trivial: numbered headings, #1793; previously trivial: legacy outline, shadow, emboss and imprint text effects drawn, #2534; previously trivial: #8 narrowed: Indonesian proofing from the installed Hunspell dictionary, #498; previously trivial: glossary/building blocks closed; previously trivial: Split Cells and Convert Text to Table follow the Word check, #2592; previously trivial: Language dialog keeps inherited proofing language and no-proof choices (#2717); previously trivial: #29: a copied equation also goes in the MathML clipboard formats, #1297; previously trivial: #24: the Spike, Ctrl+F3 and Ctrl+Shift+F3; previously trivial: VML freeforms read and kept on save; previously trivial: consistent preferred cell widths; previously trivial: multi-paragraph field instructions no longer add blank lines; previously trivial: page-break-only list paragraphs hide their labels; previously trivial: floating-table overlap ignores empty line-break lines; previously trivial: copies keep their formatting on the clipboard as HTML, #1523; previously trivial: sample-text formulas on Enter, #1067; previously trivial: #29: copied equations as MathML, OMML open as #1297, #816; previously trivial: the Font list no longer keeps every previewed font in memory, #848; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw Table and Eraser landed, #303; previously minor: beta distance restated: ~15 points, ~150–230 h; previously: first version; every known shortfall from the 2026-10-10 re-measure, ranked) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4
> **Page Setup update:** 2026-11-07 · Page Setup number boxes keep long input inside the field, including accepted margin values after focus leaves (#5650); accepted ranges and readiness estimates are unchanged.
@@ -200,6 +200,7 @@ Page Setup's margin, paper-size and document-grid number boxes scroll long text
| Date | Change | Summary |
|---|---|---|
+| 2026-11-18 | trivial | DOCX validation reports unattached custom XML schemas in coverage notes. Inline custom XML inside revision or move wrappers still fails under `CUSTOMXML-SCHEMA`. |
| 2026-11-12 | minor | #5875 round 18: package entry and availability lookups carry explicit absence/unknown states; the observation gate resolves bounded helper/accessor aliases and pins completeness predicates and reader derives. Qualified standard macros and four inert attributes are supported; named-field bindings and trait bodies remain closed grammar. Synthetic controls only; independent endpoint review remains required and readiness estimates are unchanged. |
| 2026-11-12 | minor | #5875 round 15: gate every owner root, report unresolved custom-property checks, suppress unused-comment absence on incomplete memberships, count unowned exclusions as out of scope, and harden the lexical contract gate; synthetic controls only, readiness estimates unchanged |
| 2026-11-12 | minor | #5875 W6: generated observation contracts and access gate, per-part auxiliary completeness, explicit package-registry exception; independent endpoint review required, estimates unchanged |