Commit Graph
3704 Commits
Author SHA1 Message Date
Lucas Batista Vargas e51fbe2e4b test(ui-egui): restore title_and_account_buttons_work test (#7317) (#7571) 2026-11-26 21:01:25 +00:00
Lucas Batista Vargas 3a3523f172 test(chrome): restore tab_moves_to_a_search_result_and_enter_runs_it test (#7317, #5398) (#7567) 2026-11-26 21:01:20 +00:00
Lucas Batista Vargas bfc6fbc46b test(chrome): restore undo_list_cancel_closes_without_undoing (#7317, #1903) (#7566) 2026-11-26 21:01:15 +00:00
Lucas Batista Vargas bdbb15e197 test(ui-egui): restore backstage blank document and back navigation tests (#2931, #3041) (#7557) 2026-11-26 21:01:10 +00:00
Lucas Batista Vargas b7b978b05c test(ui-egui): restore find_shortcut_focuses_find_what test (#772) (#7317) (#7551) 2026-11-26 21:01:03 +00:00
Lucas Batista Vargas 66f603931f test(ui-egui): restore navigation_pane_visibility_survives_restart (#2526) (#7549) 2026-11-26 21:00:58 +00:00
Lucas Batista Vargas e7647ca261 Options: restore test for linear-time parsing of unknown settings keys (#7317) (#7547) 2026-11-26 21:00:53 +00:00
Lucas Batista Vargas c3e38cef0b HTML paste: container background does not leak into character shading (#6157) (#6160) 2026-11-26 21:00:49 +00:00
Lucas Batista Vargas 5de0344173 Compare: detect replaced image bytes when size and extents are unchanged (#6086) (#6123) 2026-11-26 21:00:44 +00:00
Lucas Batista Vargas b67d4723cf fix(layout): keep hit test within clicked table cell bounds (#6067) (#6077) 2026-11-26 21:00:39 +00:00
Lucas Batista Vargas c7009c675f Table: preserve table structure on copy and paste (#5906) (#5916) 2026-11-26 21:00:33 +00:00
Lucas Batista Vargas 274cf67ac2 Fix: enable copy and paste for custom text boxes and frames (#5859) 2026-11-26 21:00:27 +00:00
Lucas Batista VargasandCopilot 0c6a8ea18d SmartArt: CJK text in diagrams maintains consistent fallback font family (#5672) (#5852)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-26 21:00:22 +00:00
a0f82451e3 UI port regressions vs v0.18.1: focus after reopen, Cut/Copy state, menu shortcuts, File pages (#7671) (#7711)
* #7677: register ui.backstage in the app command catalog with the label File

The File keytips fire ui.backstage, but it had no catalog entry, so the command runtime
warned and showed its id as the label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7675: Command catalog: leave Cut, Copy and Paste to the linked edit set, keep the engine's chords

The app catalog defined edit.cut, edit.copy and edit.paste, which the framework's
linked edit set also defines; the set's definition wins, so each logged a
"the app catalog defines ..." warning at startup. The three go in as the set's
replaced default chords instead (Mod+Insert, Shift+Insert stay bound).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7673: Cut and Copy are disabled in the ribbon with no selection

The focused page answers for the linked Cut and Copy, so the app's command state
(the engine's "nothing is selected") never reached the Home > Clipboard buttons.
The buttons now read the engine's enabled state, and Copy gets Cut's
has-selection rule. craft-libs' inactive_edits would also cover shortcuts and
menus once the page view is given it; this works on the current pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7675: leave Undo and Redo to the linked edit set as well

The linked EditCommands set also defines edit.undo and edit.redo, so the
board warned and dropped the app's definitions for them too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7672: File pages hand the keyboard back to the page after the click's pass

Opening a template or a recent document from File › Home after Ctrl+W left
the page without keyboard input until it was clicked. The Home, New, Back,
Save, personal-template and Recover actions asked for the page's focus in
the pass of the press that ran them; the press moves egui focus to the
pressed tile at the pass's end, so the request was lost while the canvas
still recorded it as taken. They now ask after the pass, as ribbon tabs do
(`focus_page_after_pass`). Drops the `ctx` parameters that only carried it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7703: context menu rows show their shortcuts again

The rows were bound with the props builder (MenuItem::new(label).command(..)),
which never sets the row's own command, so MenuItem::keys found no chord.
MenuItem::command(..).label(..) keeps the binding and the chord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7704: Table Layout cell size fields get their labels and two decimals back

A Height: and Width: caption beside each field and fixed two decimals, as
Layout > Paragraph's indent fields and v0.18.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7705: File > Export keeps the format buttons in a dialog-width column

They filled the whole page; the Print page already gives them its column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7706: File > Home drops the duplicate New and Open buttons

The File rail beside the page has them, as in v0.18.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7673: the page marks Cut and Copy inactive with nothing selected

PageView answers for the linked edit commands while it has focus, so the
engine's 'nothing is selected' never reached the context menu or other
surfaces. inactive_edits passes it on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7694: ribbon letter icons drawn as text, with a filled italic I (#7149 item 8)

Ports #7153 (text-drawn letter/symbol icons) onto the craft-ui code: new
icons/glyphs.rs, icons::spec and the text-glyph path in for_command, three
missing SVGs (smartArtLayouts, tableStyleOptions, tableStyles), and every
button, group and tile that shows one of those icons now resolves through
icons::spec (status bar, Home, Table, Insert, Mailings, Draw, galleries,
backstage, mini toolbar, QAT). U, strikethrough, Change Case, clear
formatting and the other letter/symbol icons are drawn as text.

The mix Martin chose: Bold keeps main's bold.svg (removed from the glyph
table); Italic uses the filled italic.svg from #7690 (removed from the glyph
table, ATTRIBUTION row updated). Underline stays a text glyph.

Test every_icon_name_the_ui_uses_resolves guards that glyph names never go
through the SVG-only IconId::new / icons::id.

Co-authored-by: batistalucasv <batistalucasv@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7676: Comments and Editing strip ends use the ghost look, so the narrow icon face stops asking IconButton for Outline/Neutral

Also drops their outlines (#7682, buttons part).

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

* #7675: Cut and Copy keys stay silent with nothing selected

edit.cut and edit.copy are disabled with a caret only, but the key still
reached edit_command, which ran them and put 'not available: ...' on the
status bar. Guard both arms with command_enabled.

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

* #7694: Underline icon is a filled SVG like Bold and Italic

Underline was drawn as a text U with a stroked bar. It now uses a new
filled-path underline.svg (a heavy U and a separate solid bar, our own
drawing) at Bold's cap height, registered as an SVG like Bold and Italic.

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

* #7694: Underline's U is the same height as Bold's B and Italic's I

The U now starts and ends where B and I do (y 5.4 to 16.5 in the 20-unit box), and the bar sits below that shared baseline (17.7 to 19.2), so the three letters line up in the Font group and the mini toolbar.

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

* #7675: empty-copy clipboard test expects Copy to be refused

With nothing selected Copy is now greyed (`when(has_sel)`), so the restored #7544 test's empty copy is refused before it reaches the clipboard; it now asserts the refusal and keeps its checks that the clipboard and its published state are untouched.

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

* #7694: glyph icons take their fixed inks from one named icon-art palette

The text-drawn glyphs' red, green, orange, pink and shadow inks are now named constants in icons.rs (ART_*), the same values the SVG icon set draws with, so glyphs.rs is checked by `interface_colours_come_from_the_theme` again instead of being exempt as a whole file. Every other glyph ink still comes from the theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: batistalucasv <batistalucasv@gmail.com>
2026-11-26 13:56:52 -06:00
5e129ac951 Validate: add wordcraft validate, a structural integrity checker for .docx (#5875)
* Validate: add wordcraft-validate, a structural integrity checker for .docx (#5848)

* Validate: harden verdict integrity against unavailable package content

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

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

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

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

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

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

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

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

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

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

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

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

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

* PR2 Step4: detect table cells without a terminal paragraph

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* Validate: enforce pooled budgets while appending, not after

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

* Validate: pin the capped CONTENTPART-TYPE verdicts

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

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

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

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

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

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

Tests pin the new severities and the Observed grades.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* VALIDATE-CR5875-FIX: exempt skipped contentPart relationships

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

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

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

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

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

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

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

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

* #5875: retain shared owners and isolate incomplete joins

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

* #5875: align absence guards with complete source sets

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

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

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

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

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

* #5875: mark competing official role targets ambiguous

* #5875: resolve entry-point profiles by agreement

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

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

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

* #5875: W2 resolve singleton sources explicitly

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

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

* #5875: W6 generate and enforce scoped observation contracts

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

* #5875: reject closure destructuring in observation gate

* #5875: enforce fail-closed observation syntax recognition

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* #5875 R20: state the observation gate polarity boundary

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

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

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

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

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

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

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

* refactor(validate): isolate main selection decision

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

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

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

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

* validate: address CodeRabbit review findings on PR #18

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

* validate: invalidate unknown field state and memoize entity traversal

* validate: bound entity semicolon search to candidate token

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* validate: reject DOCTYPE declarations in XML parts

* Classify validate in the CLI automation-root test

* Consolidate validate integration tests

* Calibrate XML-DOCTYPE severity by part role

* Keep interim DOCTYPE errors with a footnotes relationship warning

* Calibrate XML-DOCTYPE warnings from closure probes

* Distinguish unmeasured XML DOCTYPE evidence

* Restrict XML DOCTYPE evidence to measured roles and forms

* Warn on unmeasured XML DOCTYPE combinations

---------

Co-authored-by: Reuben Grinberg <reuben.grinberg@aya.yale.edu>
Co-authored-by: batistalucasv <batistalucasv@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Muse <muse@Mac-mini.local>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-26 20:39:18 +01:00
Lucas Batista Vargas 62391d8aa3 test(ui-egui): restore table_gridlines_of_a_many_row_table_are_fast (#5967) (#7556) 2026-11-26 16:15:35 +00:00
Valentin KleinandClaude Sonnet 5.5 44719ece99 Paste: a copied table in a table cell inserts rows or overwrites cells, as Word does (#6742)
Part of #6739. Default Paste with the caret in a table cell inserts the copied rows above (first column, same width) or overwrites cells from the caret's cell; over a cell selection it overwrites from the top-left. Paste as Nested Table (edit.pasteNestedTable) keeps the old nesting, which is also the fallback for cases this does not cover.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 15:17:36 +00:00
6c6ac698ca Layout: a paragraph with a hidden mark is shown on one line with the next one (#3986) (#6913)
* Layout: a paragraph with a hidden mark is shown on one line with the next one (#3986) (#4134)

Lands #4134 rebased onto main; only docs conflicts were resolved (both sides kept).

Co-Authored-By: Menonro <25549525+Menonro@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXtSjB6e5jmy9Uq7u8

* Layout: hidden-mark join fixes from review of #6913

- A paragraph moved off the shared line (next column or page) gets its
  own top and bottom border room again (flow.rs `Rooms` were stale).
- Hit testing cuts a line at a joined paragraph only when that paragraph
  still shares the line (`shares_line`), not when its first word wrapped below.
- A cell or header paragraph going on from a hidden mark takes the shared
  line's top as its paragraph origin, so paragraph-anchored drawings follow it.
- A text frame is placed apart: it is not joined, keeps its number.

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

* #4134: joined text's later lines start below a taller shared line; table frames don't join

A paragraph going on from the line of one whose mark is hidden kept only its
first line clear of that line: under a taller heading its second line started
inside the heading's line, back at the left margin. Its later lines now keep
clear of the rest of the shared line, with the room for its bottom border, in
the body and in boxes (cells, headers, text boxes).

The guard against joining a text frame resolves the paragraph with the table's
paragraph formatting, as its layout does, so a frame given by the table style
is placed apart with its list number instead of joining.

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

* #4134: joined text's first line shares the line again with exact spacing

The area that holds a joined paragraph's later lines below a taller shared
line started just below its first line. The line breaker checks a row
against wrap areas at its own estimate, the mark's font height, which is
taller than an exact line height below it: the first row then met the area
and moved below the shared line. The area now starts below whichever is
taller, so the first line shares the line under every line spacing rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

* #4134: joined text's later lines clear the shared line when a large word wraps

The area that keeps a continuation's later lines below the shared line now starts just below the first row at the line breaker's row estimate, which is what the breaker tests rows with. The probe's first line can be taller than the real one when a large word fits it but wraps off the narrower shared line, and starting the area below that taller line let the real second line start inside the heading's line. The test adds a 30 pt word at three places that wrap it to the second line, in the body and in a cell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

---------

Co-authored-by: Menonro <25549525+Menonro@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-26 11:48:47 +01:00
skylar taylor-barrick 68c024a624 Nightly: open the Launcher's files rather than its --, and stop blocking a refused launch on macOS (#7849)
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2). Two CodeRabbit findings folded in: documents keep command-line order across the separator, and a document named like a launch argument (`-NS…`, `-psn_`, `-Apple…`) survives because the split comes before the strip.
2026-11-26 04:04:23 -06:00
Lucas Batista Vargas 104556e47d chore: bump craft-libs to 0b8bbaf4c8 and egui to b9770908e0 (#7837) 2026-11-26 08:52:55 +00:00
skylar taylor-barrick 765abcc790 Switch on supervised nightlies on the nightly-signer branch (#7839)
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
2026-11-25 19:52:59 -06:00
Martin BallandClaude Opus 5.5 a44dc74fc0 #7822: Spec, plan and ADR for closing document windows (#7840)
Agreed rules for every close path (window close, File › Close, quit, one-document hosts, automation), who owns the Save prompt, and the order of work: craft-libs hidden root and test kit, repin, then the WordCraft fix. Adds Document window and Save prompt to the glossary.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:19:22 +00:00
skylar taylor-barrick 77a530b179 Use the shared nightly launcher template (#7829)
Renders the plain nightly tar's launcher from craft-common-actions' shared template.

Independent check: dylanmtaylor compared all 14 app launcher PRs byte for byte with the template rendered from the registry (https://github.com/storytold/craft-common-actions/pull/367#issuecomment-7172085284); this head was re-checked against craft-common-actions main 88148a5.
2026-11-25 16:17:53 -06:00
Martin BallandClaude Opus 5.5 4e00d00779 ROADMAP: remove a stray branch-name line from the progress log (#6917)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:48:59 +00:00
Lucas Batista Vargas 26b1d89ad2 fix(dialogs): restore table style dialog v0.18.1 layout, preview, and alignment test (#7317) (#7645) 2026-11-25 18:04:13 +00:00
Lucas Batista Vargas a272715194 test(windows): restore #117 window title test and cover root promotion (#7702) 2026-11-25 15:38:40 +00:00
Lucas Batista Vargas ff90488655 test(credits): cover Models table refit in narrowed About dialog (#7646) 2026-11-25 15:38:34 +00:00
Lucas Batista Vargas bc629b7a4f test(control_server): adapt params.token / params.key auth test post-#7101 (#7729) (#7629) 2026-11-25 15:38:28 +00:00
Lucas Batista Vargas 954750790b Dialogs: restore modal shake/nudge animation on backdrop clicks (#7321) (#7332) 2026-11-25 15:38:22 +00:00
Lucas Batista Vargas f587bcb95a fix(keytips): record ribbon menu_button commands and restore language test (#7317) (#7612) 2026-11-25 15:38:16 +00:00
Lucas Batista Vargas b068e1a538 refactor(ui-egui): unify command_input cache loop and test keytip cache behaviour (#7764) (#7573) 2026-11-25 15:38:10 +00:00
Lucas Batista Vargas 9ab9f2f874 Accessibility: return keyboard focus to page on dialog dismissal from non-canvas controls (#7458) (#7467) 2026-11-25 15:38:04 +00:00
Lucas Batista Vargas 231a09761c test(keytips): adapt long QAT multi-digit badge test to craft Keytips (#7733) (#7626) 2026-11-25 15:37:58 +00:00
Lucas Batista Vargas dc12b22371 test(objects): adapt nothing_to_snap_to post-#7101 (#7749) (#7618) 2026-11-25 15:37:50 +00:00
Lucas Batista Vargas b77c55c028 test(dialogs): adapt escape_in_the_browser_leaves_the_dialog_under_it_open post-#7101 (#7754) (#7617) 2026-11-25 15:37:43 +00:00
Lucas Batista Vargas 09465c9fc4 test(ribbon): adapt Styles gallery RTL reading-order test post-#7101 (#7753) (#7616) 2026-11-25 15:37:37 +00:00
Lucas Batista Vargas c8ecea24cf test(file_dialogs): adapt entries_expose_names_selection_and_picking post-#7101 (#7317) (#7613) 2026-11-25 15:37:32 +00:00
Lucas Batista Vargas 2a09d78972 test(keys): restore the_ignored_paste_uses_up_its_paste_modifiers test (#7317) (#7609) 2026-11-25 15:37:26 +00:00
Lucas Batista Vargas b163c0568d test(file_browser): restore a_dialog_closing_into_the_browser_leaves_it_the_keyboard test (#7317) (#7604) 2026-11-25 15:37:20 +00:00
Lucas Batista Vargas 8ed5ddd47b test(ui-egui): restore the_tab_strip_buttons_have_names test (#7317, #1110) (#7577) 2026-11-25 15:37:13 +00:00
Lucas Batista Vargas ea8f665f20 test(ui-egui): restore focus_and_full_screen_view_ask_for_full_screen_once_per_change (#1678) (#7576) 2026-11-25 15:37:06 +00:00
Lucas Batista Vargas c30777bf2a test(ui-egui): restore command_filter_narrows_the_picker_and_add_works test (#7317) (#7574) 2026-11-25 15:36:59 +00:00
Lucas Batista Vargas 34b79b33db test(ui-egui): restore the_ribbon_boxes_name_themselves_for_a_screen_reader test (#7317, #3172) (#7569) 2026-11-25 15:36:53 +00:00
Lucas Batista Vargas f89c52c428 test(ui-egui): restore the_print_button_leads_the_settings_and_is_the_primary_action (#2958) (#7568) 2026-11-25 15:36:47 +00:00
Lucas Batista Vargas 4da5534eb8 test(ui-egui): restore the_plus_button_adds_a_row test (#7317) (#7563) 2026-11-25 15:36:41 +00:00
Lucas Batista Vargas afe332b225 test(engine): restore copy_format_web_alias_respects_user_removal_and_reassignment test (#7317) (#7562) 2026-11-25 15:36:29 +00:00
Lucas Batista Vargas 3ebf69481a test(ui-egui): restore caret_colour_is_not_worked_out_while_the_caret_is_hidden (#299) (#7561) 2026-11-25 15:36:22 +00:00
Lucas Batista Vargas ab014b8fe5 test(engine): restore f11_is_full_screen_and_alt_f1_walks_fields test (#980) (#7317) (#7559) 2026-11-25 15:36:16 +00:00
Lucas Batista Vargas 7951466b8b test(ui-egui): restore a_bordered_table_shows_no_gridlines (#5967) (#7554) 2026-11-25 15:36:08 +00:00
Lucas Batista Vargas d26c7375ff test(ui-egui): restore read_aloud_player_closes_from_title_bar (#1885) (#7553) 2026-11-25 15:35:57 +00:00