Update DCAB dataset to v0.5.0
Browse files
README.md
CHANGED
|
@@ -17,7 +17,7 @@ size_categories:
|
|
| 17 |
|
| 18 |
# Document Change Assurance Benchmark (DCAB)
|
| 19 |
|
| 20 |
-
This dataset mirrors the deterministic fixture corpus from [DCAB v0.
|
| 21 |
|
| 22 |
Each case directory provides a baseline package, candidate package, and target-free `truth.json`. The public truth files describe only a narrow fact category and a reference review convention. They never disclose URI-like targets, field instructions, XPath values, relationship IDs, custom XML values, or opaque payload bytes.
|
| 23 |
|
|
@@ -33,7 +33,7 @@ fixtures/
|
|
| 33 |
...
|
| 34 |
```
|
| 35 |
|
| 36 |
-
The corpus covers direct Word hyperlinks, `HYPERLINK` and `INCLUDETEXT` fields, attached-template, master-subdocument, and DrawingML linked-picture relationships, hidden text, tracked insertion markup, Track Changes and document protection settings, content-control/custom-XML bindings, VBA project payload boundaries, and embedded OLE payload boundaries.
|
| 37 |
|
| 38 |
## Safety boundary
|
| 39 |
|
|
@@ -52,4 +52,4 @@ This mirror has no special execution requirement. It is provided under the MIT l
|
|
| 52 |
|
| 53 |
## Scope
|
| 54 |
|
| 55 |
-
DCAB does not claim client rendering/runtime compatibility or universal security policy. It is a narrow, tool-neutral static-review benchmark. See the [repository README](https://github.com/SybilGambleyyu/document-change-benchmark) and [research notes](https://github.com/SybilGambleyyu/document-change-benchmark/blob/v0.
|
|
|
|
| 17 |
|
| 18 |
# Document Change Assurance Benchmark (DCAB)
|
| 19 |
|
| 20 |
+
This dataset mirrors the deterministic fixture corpus from [DCAB v0.5.0](https://github.com/SybilGambleyyu/document-change-benchmark/tree/v0.5.0). It contains 16 paired synthetic WordprocessingML cases for static document-change assurance.
|
| 21 |
|
| 22 |
Each case directory provides a baseline package, candidate package, and target-free `truth.json`. The public truth files describe only a narrow fact category and a reference review convention. They never disclose URI-like targets, field instructions, XPath values, relationship IDs, custom XML values, or opaque payload bytes.
|
| 23 |
|
|
|
|
| 33 |
...
|
| 34 |
```
|
| 35 |
|
| 36 |
+
The corpus covers direct Word hyperlinks, `HYPERLINK` and `INCLUDETEXT` fields, attached-template, master-subdocument, and DrawingML linked-picture relationships, alternative-format import payloads, hidden text, tracked insertion markup, Track Changes and document protection settings, content-control/custom-XML bindings, VBA project payload boundaries, and embedded OLE payload boundaries.
|
| 37 |
|
| 38 |
## Safety boundary
|
| 39 |
|
|
|
|
| 52 |
|
| 53 |
## Scope
|
| 54 |
|
| 55 |
+
DCAB does not claim client rendering/runtime compatibility or universal security policy. It is a narrow, tool-neutral static-review benchmark. See the [repository README](https://github.com/SybilGambleyyu/document-change-benchmark) and [research notes](https://github.com/SybilGambleyyu/document-change-benchmark/blob/v0.5.0/RESEARCH.md) for contract details and limits.
|
RESEARCH.md
CHANGED
|
@@ -16,6 +16,7 @@ None of that implies absence of other relevant work. It identifies a concrete in
|
|
| 16 |
- An [`attachedTemplate` relationship](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/7713efa6-b1ff-4cbd-9339-5bf9018433ac) supplies the attached template path for a Word settings anchor. DCAB keeps the anchor and relationship ID stable while changing only that external relationship's synthetic target.
|
| 17 |
- A [`w:subDoc`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.subdocumentreference?view=openxml-3.0.1) identifies a master-document subdocument location. Its relationship is a separately stored external document dependency, so DCAB keeps the anchor and relationship ID stable while changing only the synthetic target.
|
| 18 |
- A DrawingML [`a:blip` `r:link`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.drawing.blip.link?view=openxml-3.0.1) identifies a linked picture that does not reside in the file. DCAB keeps that marker and its external image relationship type stable while changing only the synthetic relationship target.
|
|
|
|
| 19 |
- [Word content controls](https://learn.microsoft.com/en-us/visualstudio/vsto/content-controls?view=visualstudio) can bind content controls to embedded custom XML parts. [Microsoft's binding walkthrough](https://learn.microsoft.com/en-us/visualstudio/vsto/walkthrough-binding-content-controls-to-custom-xml-parts?view=visualstudio) explains that mapped values can display when a document opens.
|
| 20 |
- [`w:vanish`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.vanish?view=openxml-3.0.1) and [`w:ins`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.insertedrun?view=openxml-3.0.1) are explicit WordprocessingML markup classes.
|
| 21 |
- [`w:documentProtection`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.documentprotection?view=openxml-3.0.1) records editing restrictions but is documented as not being a security feature; DCAB therefore models only a password-free declaration and makes no security claim.
|
|
|
|
| 16 |
- An [`attachedTemplate` relationship](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/7713efa6-b1ff-4cbd-9339-5bf9018433ac) supplies the attached template path for a Word settings anchor. DCAB keeps the anchor and relationship ID stable while changing only that external relationship's synthetic target.
|
| 17 |
- A [`w:subDoc`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.subdocumentreference?view=openxml-3.0.1) identifies a master-document subdocument location. Its relationship is a separately stored external document dependency, so DCAB keeps the anchor and relationship ID stable while changing only the synthetic target.
|
| 18 |
- A DrawingML [`a:blip` `r:link`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.drawing.blip.link?view=openxml-3.0.1) identifies a linked picture that does not reside in the file. DCAB keeps that marker and its external image relationship type stable while changing only the synthetic relationship target.
|
| 19 |
+
- A [`w:altChunk`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.altchunk?view=openxml-3.0.1) anchor identifies alternate content for import through an internal `afChunk` relationship. DCAB keeps the anchor and relationship fixed while changing only an inert HTML payload, and never parses or imports it.
|
| 20 |
- [Word content controls](https://learn.microsoft.com/en-us/visualstudio/vsto/content-controls?view=visualstudio) can bind content controls to embedded custom XML parts. [Microsoft's binding walkthrough](https://learn.microsoft.com/en-us/visualstudio/vsto/walkthrough-binding-content-controls-to-custom-xml-parts?view=visualstudio) explains that mapped values can display when a document opens.
|
| 21 |
- [`w:vanish`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.vanish?view=openxml-3.0.1) and [`w:ins`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.insertedrun?view=openxml-3.0.1) are explicit WordprocessingML markup classes.
|
| 22 |
- [`w:documentProtection`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.documentprotection?view=openxml-3.0.1) records editing restrictions but is documented as not being a security feature; DCAB therefore models only a password-free declaration and makes no security claim.
|
fixtures/import.alternative_format_html_payload_changed/baseline.docx
ADDED
|
Binary file (3.75 kB). View file
|
|
|
fixtures/import.alternative_format_html_payload_changed/candidate.docx
ADDED
|
Binary file (3.76 kB). View file
|
|
|
fixtures/import.alternative_format_html_payload_changed/truth.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"baseline": "baseline.docx",
|
| 3 |
+
"candidate": "candidate.docx",
|
| 4 |
+
"coverage_expectations": [],
|
| 5 |
+
"description": "A w:altChunk anchor and internal afChunk relationship retain their shape while the synthetic HTML import payload changes.",
|
| 6 |
+
"facts": [
|
| 7 |
+
{
|
| 8 |
+
"kind": "alternative_format_import_payload_changed",
|
| 9 |
+
"payload_kind": "html",
|
| 10 |
+
"source": "word_alt_chunk"
|
| 11 |
+
}
|
| 12 |
+
],
|
| 13 |
+
"id": "import.alternative_format_html_payload_changed",
|
| 14 |
+
"invariants": {
|
| 15 |
+
"changed_member_count": 1,
|
| 16 |
+
"package_member_set_stable": true,
|
| 17 |
+
"stored_text_stable": true
|
| 18 |
+
},
|
| 19 |
+
"review_expectation": "block",
|
| 20 |
+
"schema_version": 1,
|
| 21 |
+
"title": "Alternative-format HTML import payload changed"
|
| 22 |
+
}
|
fixtures/manifest.jsonl
CHANGED
|
@@ -5,6 +5,7 @@
|
|
| 5 |
{"id": "external.attached_template_target_retargeted", "schema_version": 1, "truth": "external.attached_template_target_retargeted/truth.json"}
|
| 6 |
{"id": "external.subdocument_target_retargeted", "schema_version": 1, "truth": "external.subdocument_target_retargeted/truth.json"}
|
| 7 |
{"id": "external.drawing_linked_picture_target_retargeted", "schema_version": 1, "truth": "external.drawing_linked_picture_target_retargeted/truth.json"}
|
|
|
|
| 8 |
{"id": "review.hidden_text_run_added", "schema_version": 1, "truth": "review.hidden_text_run_added/truth.json"}
|
| 9 |
{"id": "review.tracked_insertion_markup_added", "schema_version": 1, "truth": "review.tracked_insertion_markup_added/truth.json"}
|
| 10 |
{"id": "review.track_revisions_setting_enabled", "schema_version": 1, "truth": "review.track_revisions_setting_enabled/truth.json"}
|
|
|
|
| 5 |
{"id": "external.attached_template_target_retargeted", "schema_version": 1, "truth": "external.attached_template_target_retargeted/truth.json"}
|
| 6 |
{"id": "external.subdocument_target_retargeted", "schema_version": 1, "truth": "external.subdocument_target_retargeted/truth.json"}
|
| 7 |
{"id": "external.drawing_linked_picture_target_retargeted", "schema_version": 1, "truth": "external.drawing_linked_picture_target_retargeted/truth.json"}
|
| 8 |
+
{"id": "import.alternative_format_html_payload_changed", "schema_version": 1, "truth": "import.alternative_format_html_payload_changed/truth.json"}
|
| 9 |
{"id": "review.hidden_text_run_added", "schema_version": 1, "truth": "review.hidden_text_run_added/truth.json"}
|
| 10 |
{"id": "review.tracked_insertion_markup_added", "schema_version": 1, "truth": "review.tracked_insertion_markup_added/truth.json"}
|
| 11 |
{"id": "review.track_revisions_setting_enabled", "schema_version": 1, "truth": "review.track_revisions_setting_enabled/truth.json"}
|