Release DCAB 0.27 form-data-only-save case
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 or fragmented field-code runs, VML shape IDs or target frames, linked-OLE ProgIDs/object IDs/update modes, DrawingML nonvisual object names/descriptions/IDs, raw hidden serialization values, graphic-data URIs, ActiveX control names/class IDs/persistence metadata, document-variable names or values, mail-merge recipient hashes or inclusion values, save-through-XSLT anchors or local solution identifiers, attached-custom-XML-schema namespace values, raw `w:linkStyles` or `w:removePersonalInformation` serialization values, permission marker IDs or individual editor assignments, task-pane web-extension IDs, classic-comment anchors and paragraph IDs, comment author/initial/date/body values, raw `commentsExtended` serialization values, frameset layout/name/size values, thumbnail relationship sources/targets, content types, part paths, references, store descriptors, property values, XPath values, relationship IDs, custom XML values, thumbnail image bytes, Markup Compatibility branch bodies, feature-prefix or qualified-name values, compatibility-rule values, or opaque payload bytes.
|
| 23 |
|
|
@@ -33,7 +33,7 @@ fixtures/
|
|
| 33 |
...
|
| 34 |
```
|
| 35 |
|
| 36 |
-
The corpus covers direct Word and legacy VML shape hyperlinks, `HYPERLINK`, simple and fragmented complex `INCLUDETEXT`, `DDE`, and `
|
| 37 |
|
| 38 |
## Safety boundary
|
| 39 |
|
|
@@ -47,6 +47,8 @@ The Markup Compatibility pair retains one `mc:AlternateContent`, one `mc:Choice`
|
|
| 47 |
|
| 48 |
The DrawingML visibility pair retains one compact inline DrawingML carrier, its package topology, and all stored Word text while changing only direct `wp:docPr/@hidden` from `false` to `true`. It does not identify a visual object, calculate effective visibility, choose an MCE branch, lay out or render DrawingML, or claim client behavior.
|
| 49 |
|
|
|
|
|
|
|
| 50 |
## Reproducibility
|
| 51 |
|
| 52 |
The source repository includes a deterministic builder and independent structural verifier:
|
|
@@ -60,4 +62,4 @@ This mirror has no special execution requirement. It is provided under the MIT l
|
|
| 60 |
|
| 61 |
## Scope
|
| 62 |
|
| 63 |
-
DCAB does not claim client rendering/runtime compatibility or universal security policy. It is a narrow, tool-neutral static-review benchmark. In particular, it does not resolve or follow links; retrieve sources, templates, frame documents, or mail-merge data; parse or decode opaque macro, thumbnail, OLE, ActiveX, or alternative-format payloads; interpret unbound custom-XML data; resolve an MCE feature prefix or choose an MCE branch; calculate effective DrawingML visibility; update/evaluate fields; open Word; activate objects; execute code; synchronize comments or task panes; or assert client behavior. See the [repository README](https://github.com/SybilGambleyyu/document-change-benchmark) and [v0.
|
|
|
|
| 17 |
|
| 18 |
# Document Change Assurance Benchmark (DCAB)
|
| 19 |
|
| 20 |
+
This dataset mirrors the deterministic fixture corpus from [DCAB v0.27.0](https://github.com/SybilGambleyyu/document-change-benchmark/tree/v0.27.0). It contains 38 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 or fragmented field-code runs, VML shape IDs or target frames, linked-OLE ProgIDs/object IDs/update modes, DrawingML nonvisual object names/descriptions/IDs, raw hidden serialization values, graphic-data URIs, ActiveX control names/class IDs/persistence metadata, document-variable names or values, mail-merge recipient hashes or inclusion values, save-through-XSLT anchors or local solution identifiers, attached-custom-XML-schema namespace values, raw `w:linkStyles` or `w:removePersonalInformation` serialization values, permission marker IDs or individual editor assignments, task-pane web-extension IDs, classic-comment anchors and paragraph IDs, comment author/initial/date/body values, raw `commentsExtended` serialization values, frameset layout/name/size values, thumbnail relationship sources/targets, content types, part paths, references, store descriptors, property values, XPath values, relationship IDs, custom XML values, thumbnail image bytes, Markup Compatibility branch bodies, feature-prefix or qualified-name values, compatibility-rule values, or opaque payload bytes.
|
| 23 |
|
|
|
|
| 33 |
...
|
| 34 |
```
|
| 35 |
|
| 36 |
+
The corpus covers direct Word and legacy VML shape hyperlinks, `HYPERLINK`, simple and fragmented complex `INCLUDETEXT`, `DDE`, `DOCVARIABLE`, and fixed legacy `FORMTEXT` fields, persisted document variables, attached custom XML schema declarations, automatic field-recalculation-on-open, template-style-update-on-open, personal-information-removal-on-save, and form-data-only-save settings, editable-range permission markup, task-pane Office web-extension auto-show configuration, Office 2013 `commentsExtended` done metadata, attached-template, mail-merge data-source/recipient-selection, and save-through-XSLT settings, master-subdocument and frameset-source dependencies, legacy VML linked-OLE objects, DrawingML linked-picture relationships and direct nonvisual visibility declarations, alternative-format import payloads, hidden text, tracked insertion markup, Track Changes and document protection settings, bound and unbound custom-XML payloads, relationship-bound OPC package-thumbnail payloads, OOXML Markup Compatibility choice requirements, VBA project payload boundaries, embedded OLE payload boundaries, and ActiveX control-persistence payload boundaries.
|
| 37 |
|
| 38 |
## Safety boundary
|
| 39 |
|
|
|
|
| 47 |
|
| 48 |
The DrawingML visibility pair retains one compact inline DrawingML carrier, its package topology, and all stored Word text while changing only direct `wp:docPr/@hidden` from `false` to `true`. It does not identify a visual object, calculate effective visibility, choose an MCE branch, lay out or render DrawingML, or claim client behavior.
|
| 49 |
|
| 50 |
+
The form-data-only-save pair retains one fixed legacy `FORMTEXT` carrier, its package topology, and all stored Word text while changing only direct `w:saveFormsData/@w:val` from `false` to `true`. It does not read or evaluate a form-field value, open Word, save a document, emit a delimited record, determine a delimiter, or claim client behavior.
|
| 51 |
+
|
| 52 |
## Reproducibility
|
| 53 |
|
| 54 |
The source repository includes a deterministic builder and independent structural verifier:
|
|
|
|
| 62 |
|
| 63 |
## Scope
|
| 64 |
|
| 65 |
+
DCAB does not claim client rendering/runtime compatibility or universal security policy. It is a narrow, tool-neutral static-review benchmark. In particular, it does not resolve or follow links; retrieve sources, templates, frame documents, or mail-merge data; parse or decode opaque macro, thumbnail, OLE, ActiveX, or alternative-format payloads; interpret unbound custom-XML data; resolve an MCE feature prefix or choose an MCE branch; calculate effective DrawingML visibility; update/evaluate fields; read a form value; open Word; save a document; emit a form-data record; activate objects; execute code; synchronize comments or task panes; or assert client behavior. See the [repository README](https://github.com/SybilGambleyyu/document-change-benchmark) and [v0.27 research notes](https://github.com/SybilGambleyyu/document-change-benchmark/blob/v0.27.0/RESEARCH.md) for the exact contracts and limits.
|
RESEARCH.md
CHANGED
|
@@ -43,6 +43,26 @@ None of that implies absence of other relevant work. It identifies a concrete in
|
|
| 43 |
- [`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.
|
| 44 |
- [Word OOXML documentation](https://learn.microsoft.com/en-us/office/dev/add-ins/word/create-better-add-ins-for-word-with-office-open-xml) describes OOXML as Word's native file format and demonstrates structured document tag markup.
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
## Design implications
|
| 47 |
|
| 48 |
1. The oracle must be deliberately partial and target-free. A benchmark should not force tools to disclose URL-like destinations, field arguments, data-binding XPath values, or opaque payload fingerprints.
|
|
|
|
| 43 |
- [`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.
|
| 44 |
- [Word OOXML documentation](https://learn.microsoft.com/en-us/office/dev/add-ins/word/create-better-add-ins-for-word-with-office-open-xml) describes OOXML as Word's native file format and demonstrates structured document tag markup.
|
| 45 |
|
| 46 |
+
## Form-data-only save boundary
|
| 47 |
+
|
| 48 |
+
Microsoft's Open XML SDK documents
|
| 49 |
+
[`w:saveFormsData`](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.saveformsdata?view=openxml-3.0.1)
|
| 50 |
+
as a direct `CT_OnOff` child of Document Settings. Its contract describes
|
| 51 |
+
form-field-content-only saving as a delimited text record, while Word's
|
| 52 |
+
[`Document.SaveFormsData` documentation](https://learn.microsoft.com/en-us/office/vba/api/word.document.saveformsdata)
|
| 53 |
+
uses a different delimiter description. That disagreement is precisely why
|
| 54 |
+
DCAB treats the fixture as a stored-configuration boundary, not an emitted-file
|
| 55 |
+
assertion.
|
| 56 |
+
|
| 57 |
+
The new pair fixes a complete, legacy `FORMTEXT` field (begin/separate/end
|
| 58 |
+
markers, `w:ffData`, name, enabled state, exit-calculation state, text input
|
| 59 |
+
default, maximum length, and fixed result) in both packages. It changes only
|
| 60 |
+
the direct `w:saveFormsData/@w:val` `false`/`true` declaration in
|
| 61 |
+
`word/settings.xml`. It does not open Word, evaluate a field, inspect a form
|
| 62 |
+
value, save a document, emit a delimited record, infer a delimiter, or assert
|
| 63 |
+
client behavior. Released DocFence 0.37 maps the aggregate state transition
|
| 64 |
+
without exposing the setting serialization or form-field material.
|
| 65 |
+
|
| 66 |
## Design implications
|
| 67 |
|
| 68 |
1. The oracle must be deliberately partial and target-free. A benchmark should not force tools to disclose URL-like destinations, field arguments, data-binding XPath values, or opaque payload fingerprints.
|
fixtures/manifest.jsonl
CHANGED
|
@@ -16,6 +16,7 @@
|
|
| 16 |
{"id": "review.field_recalculation_on_open_enabled", "schema_version": 1, "truth": "review.field_recalculation_on_open_enabled/truth.json"}
|
| 17 |
{"id": "review.template_style_update_on_open_enabled", "schema_version": 1, "truth": "review.template_style_update_on_open_enabled/truth.json"}
|
| 18 |
{"id": "review.personal_information_removal_on_save_enabled", "schema_version": 1, "truth": "review.personal_information_removal_on_save_enabled/truth.json"}
|
|
|
|
| 19 |
{"id": "external.subdocument_target_retargeted", "schema_version": 1, "truth": "external.subdocument_target_retargeted/truth.json"}
|
| 20 |
{"id": "external.frameset_source_target_retargeted", "schema_version": 1, "truth": "external.frameset_source_target_retargeted/truth.json"}
|
| 21 |
{"id": "external.vml_linked_ole_object_target_retargeted", "schema_version": 1, "truth": "external.vml_linked_ole_object_target_retargeted/truth.json"}
|
|
|
|
| 16 |
{"id": "review.field_recalculation_on_open_enabled", "schema_version": 1, "truth": "review.field_recalculation_on_open_enabled/truth.json"}
|
| 17 |
{"id": "review.template_style_update_on_open_enabled", "schema_version": 1, "truth": "review.template_style_update_on_open_enabled/truth.json"}
|
| 18 |
{"id": "review.personal_information_removal_on_save_enabled", "schema_version": 1, "truth": "review.personal_information_removal_on_save_enabled/truth.json"}
|
| 19 |
+
{"id": "review.save_forms_data_enabled", "schema_version": 1, "truth": "review.save_forms_data_enabled/truth.json"}
|
| 20 |
{"id": "external.subdocument_target_retargeted", "schema_version": 1, "truth": "external.subdocument_target_retargeted/truth.json"}
|
| 21 |
{"id": "external.frameset_source_target_retargeted", "schema_version": 1, "truth": "external.frameset_source_target_retargeted/truth.json"}
|
| 22 |
{"id": "external.vml_linked_ole_object_target_retargeted", "schema_version": 1, "truth": "external.vml_linked_ole_object_target_retargeted/truth.json"}
|
fixtures/review.save_forms_data_enabled/baseline.docx
ADDED
|
Binary file (3.81 kB). View file
|
|
|
fixtures/review.save_forms_data_enabled/candidate.docx
ADDED
|
Binary file (3.81 kB). View file
|
|
|
fixtures/review.save_forms_data_enabled/truth.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"baseline": "baseline.docx",
|
| 3 |
+
"candidate": "candidate.docx",
|
| 4 |
+
"coverage_expectations": [],
|
| 5 |
+
"description": "A direct Settings leaf changes from explicit disabled to enabled while a fixed legacy FORMTEXT field remains stored in both documents. The pair does not open a client or perform a save/export.",
|
| 6 |
+
"facts": [
|
| 7 |
+
{
|
| 8 |
+
"kind": "save_forms_data_enabled",
|
| 9 |
+
"source": "word_settings"
|
| 10 |
+
}
|
| 11 |
+
],
|
| 12 |
+
"id": "review.save_forms_data_enabled",
|
| 13 |
+
"invariants": {
|
| 14 |
+
"changed_member_count": 1,
|
| 15 |
+
"package_member_set_stable": true,
|
| 16 |
+
"stored_text_stable": true
|
| 17 |
+
},
|
| 18 |
+
"review_expectation": "review",
|
| 19 |
+
"schema_version": 1,
|
| 20 |
+
"title": "Form-data-only save enabled"
|
| 21 |
+
}
|