Repository navigation
feat(docx-markdoc): refuse to rebuild over an edited create DOCX - #1190
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
LLM gate (advisory)1 finding to review (advisory, does not block) - 4 pass, 1 warn, 0 error, 11 skipped, 16 total Findings (1)
All 16 rules (5 evaluated, 11 skipped)
|
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 8, 2026 23:10
8971b98 to
77047df
Compare
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 00:13
77047df to
f41f9f4
Compare
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 00:37
f41f9f4 to
6efe69a
Compare
stevenobiajulu
force-pushed
the
1185-independent-roundtrip-oracle-20261008
branch
from
October 9, 2026 00:55
e0d2cae to
4063e0a
Compare
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 00:56
6efe69a to
7c20524
Compare
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 01:14
7c20524 to
af3d743
Compare
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 01:43
af3d743 to
a95c6dd
Compare
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 02:05
a95c6dd to
586d6c5
Compare
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 02:17
586d6c5 to
ca84498
Compare
Base automatically changed from
1185-independent-roundtrip-oracle-20261008
to
main
October 9, 2026 02:34
--replace now rebuilds over <stem>.docx only when its SHA-256 equals the docxSha256 of a passing <stem>.verification.json. An edited DOCX, or one with a missing, unreadable, failed or fingerprint-less certificate, fails with CREATION_OUTPUT_EDITED and changes nothing. Publication re-hashes the bytes it actually moves aside, so an edit saved during the build is caught and rolled back. --dangerously-overwrite-edited-docx implies --replace, and keeps the displaced bytes in .<stem>.create-overwritten-<uuid>/<stem>.docx, named in the result and summary. Refs #1186
stevenobiajulu
force-pushed
the
1186-protect-edited-outputs-20261008
branch
from
October 9, 2026 02:34
ca84498 to
9f92096
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This was referenced Oct 9, 2026
stevenobiajulu
added a commit
that referenced
this pull request
Oct 9, 2026
Releases the docx-markdoc create follow-ups: explicit fill-in markup with literal bare brackets (#1187, #1184), the independent round-trip oracle, word-level PDF check and failure report (#1189, #1185), and the edited-DOCX guard for --replace (#1190, #1186), plus the header/footer carry-forward fix (#1188). Versions bumped with scripts/bump_version.mjs; the CHANGELOG entry is hand-written. Refs #1162
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem (#1186)
create --replacerebuilt<stem>.docxunconditionally. Someone who edited the DOCX in Word after a build lost those edits on the next rebuild, with no warning.Change (choices held for Steven's explicit approval; do not merge before it)
--replaceis the safe rebuild.docxSha256in a passing<stem>.verification.json(the last build's fingerprint).CREATION_OUTPUT_EDITEDand changes nothing.--replacebuild, when there was none before, is refused the same way.--dangerously-overwrite-edited-docximplies--replaceand accepts such a DOCX..<stem>.create-overwritten-<uuid>/<stem>.docx, and the result and summary name that path and its SHA-256.CREATION_OVERWRITE_BACKUP_FAILED).Verification
Refs #1186
Refs #1162