Skip to content

human-dataset: tab underlining in human_solver, invariant 30 move fix, clamp refresh - #131

Merged
ivankovic merged 33 commits into
mainfrom
human-dataset
Dec 2, 2026
Merged

ivankovic merged 33 commits into
mainfrom
human-dataset

Conversation

@ivankovic

Copy link
Copy Markdown
Owner

What

  1. human_solver text view underlines tabs: a tab still renders as one space cell (byte offsets must keep matching screen columns), but underlined so tab-indented fixtures read as tabs, not spaces.
  2. Invariant 30 fix: the "a moved token may take its space along" exception only excused Move-painted spacing. A Match between unlike whitespace (tabs vs spaces) always resolves to Update, never Move, so the exception was unsatisfiable exactly when indentation changed kind (gohugoio-hugo-enclose-table-with-div-and-add-thead-tbody). It now also excuses Update-painted spacing before a Move. Regression test included.
  3. Clamp refresh: swept all 2319 fixtures for fresh actuals (mapping mismatches, painting %, invariant counts). Raised the 4 failing mapping clamps, recorded invariant counts (swift-swiftlang 1x rule 30, vimscript 2x rule 31, jellyfin/cpp-add-templates repaired to 0), clamped down stale limits corpus-wide, and regenerated quality_baseline.csv + timing via make update-quality-baseline.

Verification

  • Full lib suite: 6856 passed, 0 failed after baseline refresh (previously 7 failing).
  • human_solver bin suite: 416 passed.
  • clippy clean; pre-push hooks (fmt + ci subset) green.

ivankovic and others added 30 commits November 26, 2026 14:23
The fuller preset is now Extended everywhere: `--extended`, `2 Extended` in
the `M` panel, `RenderOptions::EXTENDED`, `GradedCase::Extended`, the painting
names in every human_mapping/human_changeset JSON, the showcase payloads, the
research scripts, CSVs and paper macros, and the user docs. `--maximal` and
`--full` stay as hidden aliases, `RenderOptions::MAXIMAL` and `FULL` as
deprecated ones. The mathematical "maximal" (maximal unmatched subtrees,
maximal runs) and identifiers in corpus sources are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
main.tex says Extended for the preset, and Section 3.6 gains Table 1: each of
OmniDiff's nine render settings on a small change it alone decides, painted
with the setting off and on, as examples of what Extended paints that Minimal
leaves plain. Every example was checked against omnidiff's JSON output with
only that setting toggled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
The Highlighting tab (M) opens with one line on what it is for, then the
Minimal and Extended presets as rows of their own, with what each is for;
Space applies one, and the page opens on the preset in use. The nine
settings follow in three groups - How much to color, Whitespace, Moves -
under short names that fit the column on one row, each described with a
small example. "Changed text whole" notes that neither preset uses it.

The presets lead because they are where the accuracy is: flipping any one
setting away from either preset agrees with fewer hand paintings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
The new human mappings and paintings move seven fixtures past their stubs:
- mapping: c-pocoproject-poco-replace-0-with-nullptr 3/2 -> 9/6 (the human
  mapping now groups each `0` with its `nullptr`, omnidiff deletes and
  inserts them; its three invariant-18 violations are gone, recorded 0),
  scala-com-lihaoyi-mill-small-change 4/4 -> 10/8.
- ground-truth invariant violations recorded with notes:
  cpp-arximboldi-lager-add-two-test-cases (4, rule 25),
  json-governikus-ausweisapp-whitespace-only (4, rules 16/31),
  rust-skim-rs-skim-format-string (1, rule 31),
  php-wordpress-wordpress-add-rtc-check (2, rule 32),
  swift-swiftlang-swift-enable-checks-remove-todo-comment (6, rules 12/31).

quality_baseline.csv and the laptop timing baseline re-cut with
`make update-quality-baseline`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
The `V` popup drew each violation and review item on one table row, so a
long message was cut at the popup's edge. Each message now wraps within its
column, the row as tall as the message, and the list scrolls by row height
to keep the selected item in view. The sites below wrap too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
When the tree mapping pairs two nodes whose elements (named children) are
the same texts, unchanged, in another order, with the punctuation between
them the same, every element must be paired with an element of the partner
that reads the same. Six URLs put in a new order are six moves, not six
strings updated into each other.

`reordered_sequences_census` counts every strict reordering in the corpus
and how it is mapped: 24 in 1,767 fixtures with a tree mapping; 19 mapped
as moves (the pure-move fixtures, reordered imports, a moved block), and 5
violations, all the sysdig `kernelurls` lists, mapped by position. Those
five record one known violation each until they are remapped.

invariant_gap_census and invariants_report.py widen to 33 rules; 33 joins
the mapping family and the mapping-only rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
- scala-com-lihaoyi-mill-split-import mapping 1/1 -> 7/6: the human mapping
  now groups the split import 1:2, omnidiff inserts the second import
  (`APTED("fast_fallback")`).
- ruby-homebrew-brew-real-small-change: its invariant-18 violation is
  repaired in the new mapping, recorded 0.

quality_baseline.csv and the laptop timing baseline re-cut with
`make update-quality-baseline` (also picks up the stub limits the new
solutions moved: python-portagefilelist-client-remove-one-import-and-
update-one-const-string 8/4 -> 4/2, ruby-homebrew-brew-real-small-change
0/0 -> 3/2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
In a strict reordering (invariant 33) mapped as moves, separators go by
rule (c): an element with a separator right after it on both sides takes it
along; the separators left over pair in order; brackets pair by position.
A strict reordering keeps its punctuation, so the leftovers come out even:
no painting may mark a separator or bracket of it inserted or deleted.

Rule (c) settles the tension between separators belonging to the list (the
tree's reading, positional) and travelling with their element (a moved line
`foo,` reads as one): the second, taken whole, deletes the comma of the
element that becomes last and inserts one for the element that was last.

Census: the remapped yaml-draios-sysdig-string-url-change and -2 break it
twice each (the tree mapping and the painting delete one comma and insert
another); recorded in their stubs. -3 now holds both rules.

Units family in invariants_report.py; the census widens to 34 rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUyLJ2enKeRdFnvjUTNwT1
A same-shape match pairs a list's elements by position, and phase 9b only
re-paired renamed *leaves*. A YAML string is a `double_quote_scalar`
holding its two `"`, so six URLs put in a new order came out as six
strings each "changed" into another.

`solve_reordered_sequences` handles the strict case: two paired nodes whose
named children are the same texts, unchanged, in another order, with the
same punctuation in the same order. Each element pairs with the one that
reads the same (repeats by order of occurrence), whole subtree and all;
separators by rule (c) - an element with a separator after it on both sides
takes it, the leftovers pair in order - and brackets by position. Nothing
is inserted or deleted. It runs only when the old pairs stay inside the two
nodes and outside multi-map groups, so it leaves nothing unmatched. New
reason `ReorderedSequence`.

Quality gate against the old baseline: css-wordpress-wordpress-one-line-to-
multi-line-2 52 -> 0, go-gohugoio-hugo-big-change 106 -> 67; the sysdig
URL lists change as intended (string-url-change and -2 down to their one
comma each that the hand mapping deletes and inserts; const-string-url-
change and -4 await their remap). Painting gate passes.

The picture viewer's SVG test pair churned only attribute order and spacing;
that is now a move, not two edits, so the pair also respells the fill.

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

- Invariant 31: a date's `/` or a time's `:` between two numbers goes with
  the number on its right (`2022/04/06 10:07:32` -> `2022/09/15 08:43:20`
  paints `:07`, `:32`, ...), with tests.
- imapsync gains its human text_mappings (Minimal and Extended) and a
  painting test clamped at 0.01; its invariants test records 4 known
  violations: Extended paints the `$Id:` line's time `:`s as moves, not as
  the updates the new rule wants.
- Mapping clamps raised where phase 9b's ReorderedSequence pairing exceeds
  the recorded limits: lua-corsixth-refactor-if-expressions 12/12 -> 14/14,
  scala-com-lihaoyi-mill-split-import-2 8/7 -> 20/17,
  yaml-draios-sysdig-const-string-url-change 0/0 -> 8/6 (plus painting
  15.74 -> 46.59).
- yaml-draios-sysdig-string-url-change-4's invariant-33 violation is
  repaired by the reordered-sequence mapping; recorded 0.
- quality_baseline.csv rows re-cut to the stub limits (also the pre-existing
  drift: string-url-change 5/4, -2 5/4, -3 8/6).

Full `cargo nextest run --all-features` green: 7582 passed.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
ivankovic and others added 3 commits December 2, 2026 17:57
…ant 30's move exception

- human_solver's render_paint_side now underlines a tab's one-cell space so
  tab-indented fixtures (e.g. the gohugoio-hugo table fixture) read as tabs,
  not spaces, while byte offsets keep matching screen columns.
- Invariant 30 (spacing before an edit follows its count) only excused
  Move-painted spacing before a moved token. A Match between unlike
  whitespace (tabs vs spaces) always resolves to Update, never Move, so the
  "a moved token may take its space along" exception was unsatisfiable
  exactly when indentation changed kind. It now also excuses Update-painted
  spacing before a Move. Fixes the html-gohugoio-hugo-enclose-table-with-div-
  and-add-thead-tbody invariant failure; adds a regression test.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
…ality baseline

Sweep of all 2319 fixtures (mapping mismatches, painting percent, invariant
counts) with the current differ; clamps now equal actuals:
- raised the 4 failing mapping clamps (jellyfin-add-function 42,31 -> 70,46;
  nextcloud-ios-refactor-and-change 19,13 -> 25,15; langflow 1,1 -> 3,3;
  vimscript add-two-functions 16,12 -> 18,14)
- recorded invariant counts: swift-swiftlang-actual-logic-change 0 -> 1
  (rule 30), vimscript 0 -> 2 (rule 31), jellyfin 2 -> 0 and
  cpp-add-templates 0 (repaired; notes updated)
- clamped down stale painting/mapping limits corpus-wide where actuals
  dropped below the recorded clamp
- regenerated research/data/quality/quality_baseline.csv and timing via
  make update-quality-baseline so the baseline matches the stub limits

Full lib suite: 6856 passed, 0 failed after the baseline refresh.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@ivankovic
ivankovic merged commit b69f231 into main Dec 2, 2026
61 of 63 checks passed
@ivankovic
ivankovic deleted the human-dataset branch December 2, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant