What changed, why, and the numbers, per wave or merged change. Newest first. Add an entry for
every wave or merged change (AGENTS.md §9); details live in the commits,
the CHANGELOG and the docs. New entries name their commit by short hash
(git show <hash>) once it is known; the entries below predate the current history and carry none.
- What:
pbi-opschecks nonempty capability roots, honorsoverwritefor each PBIP file, and fails safely when atomic no-clobber creation is unavailable. - Why: avoid replacing existing files during restricted project conversion or a concurrent write.
- Numbers: 2 regression cases cover a nonempty root and a file created after the directory check.
- What:
scripts/app-checks/cdp.mjsgainsjs(value):JSON.stringifywith<,>,/, U+2028 and U+2029 escaped as\uXXXX;bookmarks,editing-smoke,external-changes,formula-keysandrecoveryuse it where a value is spliced into an evaluated function expression.screen-reader.mjsescapes backslashes before pipes in report cells.app/tests/daxEditor.test.tsremoves the caret marker by index instead of a first-matchreplace;pbi-core/tests/formats.rsassert_no_leakno longer prints the hidden value and reports the caller's line (#[track_caller]). - Why: alerts 1 to 11 (
js/bad-code-sanitization,js/incomplete-sanitization,rust/cleartext-logging). - Numbers: 11 open alerts → 0 expected after the next scan; app
npm run check59 tests pass,pbi-core --test formats17 tests pass; evaluated values are identical (checked by evaluatingjsoutput).
- What:
pbi-session(edit.rs,recalc.rs): a column rename leaves its own calculated table's expression alone, and recalculation normalizes that expression the same way.pbi-tmdl: the formatter puts a leading one-level block two levels deep when indenting with spaces, so the indent width it detects on re-reading is the same (service/format.rs); the preserving writer quotes untypedrefobject names (writer.rs). Tests:renaming_a_calculated_table_column_keeps_its_expression(pbi-opse2e), a formatter unit test and afuzz_findings_round_tripcase; four crash inputs added asfuzz/seeds/{tmdl,tmdl_service}/regression-*. - Why: nightly fuzz failed intermittently on
tmdl_service.rs:119(format not idempotent) andtmdl.rs:63(preserving writer changed the model); the registry property test (seed 40) left time-intelligence measures BLANK after undoing everything. RenamingDate[Date]rewroteYEAR([Date])in Date'sADDCOLUMNS(CALENDAR(…))to the new name, which CALENDAR does not return; the next recompute (here, undoing an expression change) failed and emptied the table. - Numbers: the property test on seeds 40–43 at 10,000 steps passes (seed 40 failed at step 68); all four crash inputs pass the fuzz invariants.
- What:
Cargo.locktakes Arrow and Parquet 59.3.3,url2.5.9,cookie0.18.3,zstd0.13.6 andzstd-safe7.4.2;deny.tomldrops the three zstd ignores (fixed in the 0.13 line now) and ignores RUSTSEC-2026-0543 (chrono unmaintained, no safe upgrade, required by Arrow and DataFusion);THIRD_PARTY_NOTICES.mdregenerated (zstd-sys 2.2.0 adds BSD-2-Clause, already allowed). - Why:
cargo deny check advisoriesfailed on every PR from 2026-11-30 (RUSTSEC-2026-0543, -0592, -0594, -0595). - Numbers: 21 crates updated; advisory ignores 3 → 1.
- What:
pbi-corelinter ruleLINT020(MULTIPLE_ACTIVE_RELATIONSHIPS) flags models where more than one active relationship joins the same pair of tables (regardless of endpoint direction), reporting origin, object id, and actionable suggestions to deactivate conflicting paths. - Why: DESKTOP-PLAN M10.11 ambiguous relationships. Power BI Desktop rejects models with
ambiguous active direct filter paths between two tables; DashCraft previously guarded against this
only during interactive mutation commands (
structure.rs), allowing multiple active paths from raw TMDL/TMSL loads or external project edits to pass unflagged. - Numbers: 1 new lint rule (19 → 20); 4 new unit tests covering duplicate active paths, reversed endpoints, inactive relationships, and independent table pairs; 0 new dependencies.
- What: Compare shows the meaning of the line markers and announces the result through a persistent live region. The screen-reader journey keeps speech from the step that opens the dialog. Windows also checks the UI Automation tree for the bar, Compare and Document recovery.
- Why: M8's A6 comparison result went unrecorded in the latest scheduled run. The old step cleared the speech log after Compare had opened.
- Numbers: One announcement promoted to a required check and three Windows UI Automation checks added. The 59 frontend tests and 32 Rust app tests pass. The updated hosted A6 evidence remains open.
- What:
pbi-corelinter ruleLINT019(CIRCULAR_SORT_BY) flags columns wheresortByColumnreferences the column itself or forms a multi-hop circular dependency chain (A → B → A), reporting origin, cycle path, and actionable suggestion. - Why: DESKTOP-PLAN M10.11 sort-by violations. Power BI Desktop rejects models with circular
sort-by dependencies during processing; DashCraft previously only verified target existence
(
LINT017), allowing circular chains to pass unflagged and requiring ad-hoc guards in downstream query execution. - Numbers: 1 new lint rule (18 → 19); 3 new unit tests covering self-sort, 2-hop cycles, and acyclic sort chains; 0 new dependencies.
- What: version 0.3.0 (
scripts/set-version.sh:Cargo.toml,Cargo.lock,app/package.json,app/package-lock.json); CHANGELOG[Unreleased]moved under[0.3.0]with a summary, its repeatedChangedandDocumentationsections merged and one duplicate entry dropped; the registry catalog'ssincecorrected from 0.2.0 to 0.3.0 (pbi-opsSINCE; the registry first ships in 0.3.0, aspbi-aialready said) anddocs/COMMANDS.mdregenerated; README, AGENTS.md and ROADMAP release status; THIRD_PARTY_NOTICES says MIT OR Apache-2.0. - Why: DESKTOP-PLAN M6, M7 and M9 are complete and M8's features have shipped (its A6 screen-reader steps for the bar and Compare are still open); 183 commits since v0.2.0.
- Numbers: 161 changelog entries; 112 command
sincelines updated.
- What: the app sets the "Files changed on disk" status message
ANNOUNCE_DELAY_MSafter the notification bar appears (and only while that change is still shown);scripts/app-checks/external-changes.mjswaits for the message. - Why: the gating NVDA job failed S33 ("a change on disk is announced", heard nothing) on 5 of the last 10 completed runs, though the bar was shown each time: the live-region change made in the same frame as the bar's insertion was dropped. VoiceOver and Orca stay informational.
- Numbers: local app checks all pass on Windows (external-changes 51, editing-smoke 23, editing-a11y 21, formula-intellisense 22, formula-keys 44, recovery 31, bookmarks 28).
- What:
pbi-renderquery::persist(filter_definition,slicer_objects,filter_with: conditions back to PBIR filter JSON);pbi-modelcommandsSetVisualObjectsandSetFilterDefinition;pbi-coresave in place patches visualobjectsand filter definitions of PBIR reports;pbi-opsreport.state.persist(one "Save reading state" undo group,CanvasStore::persist_plan, canvas state follows the saved selections); the app runs it before Save and Save as. - Why: DESKTOP-PLAN M9.11 (ADR-0006's step from view state to document edits); GAPS §6 persisting selections.
- Numbers: 3 writer unit tests, 1 model, 1 save-in-place and 1 registry test; 1 new
registry command. Refused for
isPersistentUserStateDisabledand legacy layouts.
- What:
pbi-renderquery::reduction::QueryReduction(reportslowDataSourceSettings, PBIR and legacy),InteractionState::pending_slicerswithstage,apply_pendingandshown_selection(slicers draw what they show); report and page measure conditions filter each visual's rows; cross-highlighting disabled ignores default interactions.pbi-opscanvas.applySlicers, pending slicer selections when the report or a visible "Apply all slicers" button asks for them,pendingandapplyButtonon slicer interactions. App: an Apply button on slicers with a pending selection. - Why: DESKTOP-PLAN M9.10; GAPS relative-date and measure filters row 3 → 4.
- Numbers: 2 new
pbi-opscanvas tests; no render snapshot changes. Not checked against Desktop: report/page measure filters (Desktop adds them on visuals only), pending selections not syncing across pages until applied.
- What:
pbi-renderQueryEnv::for_reportandReportModels(report measures in the query model),images(decode, sanitize, place; image visual, page background and wallpaper images, buttonicon.image/fill.image),ThemeResolver::with_images;pbi-opsReportImages(resource-package files read from the container, decoded once) attached bycanvas::report_theme, now used byrender.*and the CLI too (legacy themes); resvg'sraster-imagesfeature (new crates gif, zune-jpeg, image-webp). - Why: DESKTOP-PLAN M9.9; GAPS
reportExtensions.json2 → 4, images 1 → 3,image0 → 3, legacy reports 3 → 4. - Numbers: 3 new integration tests and 7 image unit tests; no render snapshot changes; the COVID-19 sample now draws its 3 images and page backgrounds (a 7890 × 4434 PNG, ~2 s for a PNG page render including the decode).
-
What:
pbi-renderfocus mode (InteractionState.focus, the visual fills the page withinFOCUS_MARGIN, "Show as a table" adds a<name>~tabletable visual of its data below it; bookmarks in focus mode set it),query::export(summarized data from the visual's query, underlying rows of its base table with related columns, row-capped);pbi-opscommandscanvas.focus,canvas.showAsTable,canvas.setSpotlight,canvas.sortVisual,canvas.contextMenu,export.visualData, andsort/focus/spotlightincanvas.render; the app's visual header (Focus mode, More options) and right-click copy items. -
Why: DESKTOP-PLAN M9.8, GAPS "Visual header menus" (0 → 3).
-
Numbers: 3 new tests (
visual_header_focus_sort_spotlight_copy_and_export,maximize_bookmarks_and_focus_mode_fill_the_page,export_summarized_and_underlying_data); no render snapshot changes. Open: Include / Exclude, XLSX export, the base-table heuristic of underlying data. -
M9.7 range and relative slicers.
pbi_render::query::relativereads, resolves (against the session clock:RevisionSnapshot::local_now,QueryEnv.now) and writes Power BI's relative date/time conditions;FilterBuilderapplies them at every level (no clock: skipped with a warning, sorenderstays deterministic). The slicer draws relative controls and exposes the range slider, boxes and pickers;canvas.setRangeandcanvas.setRelativeDate(pbi-ops) set them, with filter pane summaries ("is between 1 and 10", "is in the last 3 months (calendar)"). App: draggable handles (mouse, arrows, Home/End), editable bounds, Last/Next/This pickers (lib/slicerRange.ts). Tests: 2 pbi-ops canvas tests, 3 relative unit tests, 4 app tests; the Acme time-intelligence snapshot loses its "RelativeDate not supported" warning and draws "Last 10 Years".
- What:
pbi_render::query::drillthroughcarries the source visual's own filters with "Keep all filters" (the tooltip page's own loop moved there) and finds cross-report targets (cross_report_targets,allows_cross_report_drillthrough);drill_throughtakes the target report and carries the source report's filters across reports.canvas.drillthroughTargetslists the other reports' pages,canvas.drillthroughtakestargetReport, the Filters pane card says "Drillthrough from the X report"; the app labels them "Page (Report)" and Back switches report. - Why: DESKTOP-PLAN M9.4 (the service-only cross-report drillthrough, extended to the open document until several documents open, M24.8); GAPS Interactions.
- Numbers: pbi-render lib 106 tests, pbi-ops canvas 11, app vitest +1.
- What:
pbi-renderquery::bookmarkrestores a captured visual's drill levels (singleVisual.activeProjectionsof its drill role) and drill path (itshowCreatedDrill filters) intoInteractionState::drill, and thespotlightdisplay mode into the newInteractionState::spotlight; the page render fades the other visuals (SPOTLIGHT_FADE). Closes M9.5. - Why: M9.5 in
docs/DESKTOP-PLAN.md; GAPS bookmarks and drill rows. - Numbers: 2 new tests (
bookmarkunit test,visuals_basics); render snapshots unchanged.
- What:
pbi-rendercharts (bar, column, pie, donut, funnel, treemap) label the highlighted value while another visual highlights them (SeriesData::label_value,format::shown_value; a blank highlight gets no label);pbi-opscanvas.tooltipadds a "Highlighted" line. Closes M9.1. - Why: M9.1 in
docs/DESKTOP-PLAN.md; GAPS Interactions row. - Numbers: 2 new tests (
visuals_charts,pbi-opscanvas); render snapshots unchanged.
- What:
pbi-renderquery::contextapplies a visual'sgeneral.selfFilterfilter definition to its own query only (warnings when it cannot be read or applied). - Why: the last open part of M9.6 and the GAPS "Synced slicers" row (🟡 3 → ✅ 4).
- Numbers: 1 new query test (
a_self_filter_narrows_only_its_own_visual).
- What:
pbi-renderquery::drill(drill levels, savedactivelevel, drill state inInteractionState.drill, the drilled visual and its path filters on itself and on visuals that drill-filter);pbi-opscanvas.drillandCanvasVisualOut.drill; the app's drill header buttons, drill mode and right-click items. The generator makes the Online report's membership-tiers axis a Calendar hierarchy (Year, Quarter active, Month) and records six drill steps with their categories and card values (expected.jsondrill). - Why: M9.2 and the GAPS "Drill-down/up on hierarchies" row (❌ 0 → 🟡 3).
- Numbers: 3 unit tests, 1 e2e test, 2 app tests;
check_acme.py449 checks pass.
- What:
pbi-renderquery::tooltip(tooltip pages, the page of a hovered point throughvisualTooltipor the field match, its filter state on top of the drillthrough context);pbi-opscanvas.tooltipPage(stateless query + render); the app's hover card shows the page's SVG at its size. The generator records the Seattle Flagship × Camping hover (expected.jsontooltipPages). Fix inquery/filter.rs: a single tuple across tables filters per column (TREATAS-like) instead of the common fact table's rows, which also narrowed Date and changed Target Attainment (43.6 % instead of 10.0 %). - Why: M9.3 and the GAPS "Report-page tooltips" row (❌ 0 → 🟡 3).
- Numbers: 2 unit tests, 1 e2e test; new perf scenario P13
tooltip-page-render: p95 1.55 ms (target 16 ms) on the Windows desktop.
- What:
pbi-render's filter context now highlights (instead of filtering) combo, pie, donut, treemap and funnel targets of a selection; the query already computedValueColumn::highlightsfor any categorical shape, so the work is in drawing: pies and donuts draw the dimmed slice plus a slice of the same angle with its radius in proportion, funnels a centred bar on the same scale, treemaps the tile's bottom part; combos reuse the column path. An explicitHighlightFilteron a visual that cannot draw highlights still filters it, with the warning. - Why: the M9.1 "Next" item and the GAPS Interactions row.
- Numbers: one query test reworked (pie highlighted, table filtered with a note), one render
test for the four chart kinds. Desktop's pie and treemap geometry is undocumented (radius or
area, which edge): assumption noted in
docs/VISUALS.md.
- What:
scripts/examples/gen_acme.py: Store Detail'sRegion = Eastpage filter is a drillthrough filter (howCreated: Drillthrough,pageBindingof type Drillthrough, Keep all filters), with a Back button; Store Performance's Stores table gains a Region column so its rows drill through.expected.jsongets adrillthroughentry (from the Seattle Flagship row: West stores and returns under the source's 2025 slicer), also inEXPECTED.md.drillthrough_on_the_example_report(crates/pbi-ops/tests/e2e.rs) checks the targets and the drilled page's texts; render snapshots of both Stores pages and theinspectsnapshot updated. - Why: M9 acceptance criterion 1 (a drillthrough binding on the Store Detail page); GAPS Drillthrough row.
- Numbers: visuals 80 → 81;
check_acme.py449 passed; 1 new test.
- What: the app's report canvas opens a context menu on a right-clicked data point: a
Drill through header and one item per page from
canvas.drillthroughTargets(disabled when there is none); choosing one runscanvas.drillthroughand follows the page (app/src/lib/drillthrough.ts,ReportCanvas.svelte,backend.ts). - Why: M9.4; GAPS Interactions "Drillthrough" row (next step done).
- Numbers: 2 new app unit tests (
app/tests/drillthrough.test.ts); no Rust change.
- What: new
pbi_render::query::drillthrough:drillthrough_page(page filters created by drillthrough or bound bypageBinding.parameters[].boundFilter; tooltip pages excluded; "Keep all filters" fromacceptsFilterContext),drillthrough_targets(pages whose drillthrough fields a point all has) anddrill_through(the target's state: the drilled values asInteractionState::drillthrough, applied bycontextas an exact page-level tuple filter; the saved drill value neutralised; the source's page filters, slicers and cross-filter carried asConditions, Top N listed as not kept).pbi-opsaddscanvas.drillthroughTargets,canvas.drillthrough(from a hit or the page's selection), drillthrough buttons incanvas.click, a Drillthrough card inselections; the app follows thedrillthroughaction. - Why: M9.4; GAPS Interactions "Drillthrough" row (❌ 0 → 🟡 3, area 2.1 → 2.2).
- Numbers: 4 new tests (3 in
pbi_render::query::drillthrough, 1 end to end incrates/pbi-ops/tests/canvas.rs); 2 new commands; render snapshots unchanged. Desktop's rule for pages with several drillthrough fields is undocumented: a point must have all of them.
- What:
pbi_render::query::sync_groupreadssyncGroup(PBIR) andsingleVisual.syncGroup(PBIX layouts);synced_slicerslists the other slicers of the group over the same fields on every page (filterChanges: falseopts out).pbi-opscanvas copies the selection after a slicer click,canvas.setSlicer,canvas.clearSelectionsand Clear all slicers to those pages' interaction state, so hidden synced slicers filter their page. - Why: M9.6; GAPS Interactions "Synced slicers" row (❌ 0 → 🟡 3, area 1.9 → 2.1).
- Numbers: 2 new tests (group, legacy key, fields and
filterChanges; click, set, clear and Clear all across two pages); render snapshots unchanged.
- What:
context::visual_filtersno longer filters a bar or column chart (clustered, stacked, 100%) by points selected in another visual when the interaction is the default orHighlightFilterand the report does not setdefaultFilterActionIsDataFilter: it keeps the visual's context and addsVisualFilters::highlight(that context plus the selection, after Top N).exec::chartreruns its category (or category × series) query under it, without the measure filter, and fillsValueColumn::highlightsaligned by keys (BLANK where nothing is highlighted).SeriesData::highlightsandbar::Segment::highlightcarry them to the renderer, which draws the full bar dimmed (DIMMED_OPACITY) and the highlighted part solid (stacked parts from their segment's base, clamped to it). Pies, donuts, treemaps, funnels and combos still filter, now with a warning also for the default interaction. - Why: M9.1; GAPS Interactions "Highlight interactions" row (❌ 1 → 🟡 3, area 1.8 → 1.9).
- Numbers: 2 new tests (DataView highlights incl.
DataFilterand the report setting; dimmed and highlighted bars, stacked clamping); render snapshots and Acme expected values unchanged (no selection).
- What:
InteractionState::filters(FilterOverrides: report, page and per-visual filter name → condition, kept only where it differs from the saved card;set_filter,FilterLevel);context::visual_filtersplans each card with its override, so every query path follows it.apply_bookmark's data part reads theFiltersStateofexplorationState.filters,sections.<page>.filtersandvisualContainers.<visual>.filters:byNamecontainers match cards by name,byExprones by name or field, and theirfilter(none: not filtering) replaces the card's condition. "All visuals" starts from the saved cards; "Selected visuals" resets and sets only its targets' visual cards. Changed Top N filters,byType/byTransientStateand unmatched containers are listed as not applied.pbi-opsrenames the overridden conditions with the model. - Why: M9.5 data part; GAPS Bookmarks rows (next steps drill state, spotlight, cross-highlights).
- Numbers: 1 new query test (report clear, visual set, page by field, target reset, notes); the Acme bookmark tests are unchanged (no filter state).
- What:
InteractionState::sort(visual → sort order replacing itssortDefinition, kept only where it differs;set_sort);QueryEnv::query_visualqueries with it, so every query path (page data, single visual, exports) follows it and the DataView metadata carries the new sort indicators.apply_bookmark's display part readssingleVisual.orderBy(semantic-query sort clauses, direction 1 ascending, 2 descending;semantic::sort_clauses): a readable order is set, a missing one resets the saved order, an unreadable one is listed as not applied.pbi-opsrenames the sort fields with the model like slicer selections. - Why: M9.5 display parts; GAPS Bookmarks row (next step now the filter parts).
- Numbers: 1 new query test (set, saved-order and reset bookmarks, unreadable clause).
- What:
InteractionState::visibility(visual or group → hidden, only where it differs from the savedisHidden;set_hidden,page_with_visibility);query_page_dataand the page render use the page with it applied, so hidden visuals are neither queried nor drawn and a hidden group hides its children.pbi_render::query::apply_bookmarknow applies the data and display parts independently: the display part sets visibility from each captured visual'ssingleVisual.display.modeand each group'svisualContainerGroups.*.isHidden(nestedchildrentoo; shapes from Microsoft's MIT bookmark schema 2.1.0), from the saved state for "All visuals" and from the current state for "Selected visuals"; with Display unchecked the current visibility stays. Other display modes (spotlight, maximize, elevation) are listed as not applied. - Why: M9.5 "apply data, display and current-page parts"; GAPS Bookmarks rows (next steps now filter and sort).
- Numbers: 1 new render test (all, target-only and Display-off bookmarks; query and scene checks); the Acme bookmark tests are unchanged.
- What:
pbi-render/src/visuals/navigator.rs:Navigation(pages with hidden/tooltip flags, bookmarks with their group, the current page, the bookmark applied last) is built per page render and passed to visuals inVisualCtx::nav(and the cache key of navigators);itemslists the buttons perpages.*/bookmarks.*,renderlays them out (layout.orientation,rowCount/columnCount,cellPadding) with the button shape and the"$id": "selected"colours, anditem_actionresolves a click (deselection bookmark included). New hit kindNavItem(<visual>|navItem|<i>);pbi-opscanvas.clickhandles it andCanvasStoreremembers each report's applied bookmark (PageRenderOptions:: active_bookmark). Property names come from Microsoft's MIT report-theme JSON schema; the orientation codes (2 horizontal, 1 vertical, 0 grid) are from it, the default selected style is an assumption. - Why: M9.5 "navigators drawn as lists"; GAPS Visuals row 🟡 2 → ✅ 3 (§5 15/6/8 → 16/5/8).
- Numbers: 2 new render tests, 1 e2e test; the Acme Executive Summary snapshot now lists the three Overview pages instead of "Page navigator" (reviewed, intended).
- What:
app/src/components/panes/BookmarksPane.svelte(View → Bookmarks, now enabled): bookmarks in pane order, consecutive members of a group as a collapsible section, the one applied last markedaria-current; a click callscanvas.applyBookmark(backendapplyBookmark) and follows it to the bookmark's page. View starts the slideshow: arole="group"bar above the page tabs (Previous, name, "n of N", Next, Exit / Esc) that keeps the focus inside and returns it to View.scripts/app-checks/bookmarks.mjsdrives it on the Acme Stores report after a refresh. - Why: M9.5 and the GAPS Interactions row "Bookmarks" (2 → 3; §6 average 1.7 → 1.8).
- Numbers:
bookmarks.mjs28 checks pass (both bookmarks' 10 card values via the button, the pane and the slideshow; A1–A5, IBM checker with no violation on the pane and the bar).
- What:
pbi-modelgainsBookmarkandReport::bookmarks(groups as children);pbi-pbirreads PBIRbookmarks/bookmarks.jsonand*.bookmark.json(files the list omits too; missing or broken files are warnings) and PBIR-Legacy/PBIXconfig.bookmarks.pbi_render::query::apply_bookmarkturns a bookmark into per-page interaction state: the active section, slicer selections from the visuals'objectsdiff (remove, then merge), the cross-filter cleared or kept for "selected visuals only",suppressDataandsuppressDisplay; everything else is listed as not applied.pbi-opsaddsreport.bookmarksandcanvas.applyBookmark;canvas.clickon a bookmark button applies it and returns abookmarkaction, which the app follows to the bookmark's page. The Acme generator records both Stores bookmarks' card values (expected.jsonbookmarks). - Why: M9.5 and the GAPS Interactions row "Bookmarks" (0 → 2); PBIR bookmarks (1 → 3).
- Numbers: 2 new registry commands (12
canvas.*); 10 card values checked across the two bookmarks; new tests inpbi-pbir(3),pbi-render(2),pbi-ops(1).
- What:
scripts/app-checks/screen-reader.mjswalks the M8 journeys after M6 and M7 (S33 to S44): an external TMDL edit is announced, Tab reaches the bar's Compare, the dialog says its name, the changed measure's TMDL is reachable, Esc returns to Compare, Reload says so; then an unsaved edit outlives a killed app and Document recovery's Restore says what it restored. Writing them showed the bar'srole="status"is not announced when it appears with its text, so the app also says the change in the status bar's live region. The first run showed VoiceOver and Orca dropping "Reloaded" and "Restored" when the focus moved right after: the app now moves the focus first (to the ribbon tab, not the page) and says the outcome 0.5 s later. Document recovery gets Open saved per file: the file as last saved, its edits kept for the next start. - Why: M8 acceptance 4 (A1–A6 for the recovery prompt, the bar and Compare) and the "open saved" choice of M8.1.
- Numbers:
external-changes.mjs49 → 52 checks,recovery.mjs16 → 31 (with A1–A5 and the IBM checker for Document recovery, which found the Open saved name missing its visible label), all pass on Windows; the screen-reader run is in PR #80.
- What:
pbi_core::diff_projectsdiffs two opened documents likediff_documents, then replaces each report, page and visual snippet with its PBIR file (report.json,page.json,visual.json) frompbi_pbir::write_pbir, in the source's own formatting, when every side the object is on has one (legacy layouts keep the JSON of the properties).Session::read_openedreads a file with its report sources;doc.diffcomparesedited_opened()(unsaved edits written as files) with disk, a path or another open document, and falls back to the plain diff when a side's report edits cannot be written yet. - Why: the last headless gap of M8.3 ("report snippets in the PBIR file's form").
- Numbers:
crates/pbi-core/tests/diff.rs(a renamed page shows its editedpage.json; a removed 219-linevisual.jsonis cut after 200 lines) andcrates/pbi-ops/tests/save.rs(an unsaved visual move showsvisual.jsonon disk and as saved);ops.gen.tsregenerated.
- What:
pbi-opsgets awatchmodule: everyexternal_poll(default 1.5 s, new inRpcOptionsandMcpOptions) each open document's project is scanned asdoc.externalChangesdoes, and a change of its set of changed files is pushed:doc/externalChanged {docId, changes}inserve, anoticelog message (data.event: "doc/externalChanged") inmcp, resent later when the client's log level drops it. Each scan enters the per-document queue of mutating requests (now anArc<DocQueue>shared by the watcher), at most one pending per document, so a save, reload or refresh of the server is never scanned halfway and its own writes are not reported. At end of input the watcher stops before the writer closes. - Why: the last headless part of M8.2; clients no longer have to poll
doc.externalChanges. - Numbers: two new tests (
rpc.rs: pushed once per set, empty afterdoc.reload;mcp.rs: held back belownotice, sent afterlogging/setLevel), each under a second;pbi-opsanddashcraft-clisuites pass;docs/COMMANDS.mdregenerated.
- What: a File → Compare page (
Backstage.svelte) compares the document, unsaved edits included, with its files on disk, a Power BI file or a PBIP / TMDL folder picked in the native dialog (backend.diffWithPath:doc.diffwithagainstPath).CompareDialog.svelteis now generic: the other side is labelled with its name (its folder too when it has the document's file name), and the changed-files list, Reload and Keep mine show only for external changes on disk.scripts/app-checks/pick.ps1answers a native open dialog (UI Automation finds it; the path and the click go as Win32 messages, since the classic edit box and button expose no patterns and the Tauri invoke bridge cannot be stubbed from the page). - Why: the last app part of M8.3 ("compare two versions of a project").
- Numbers:
external-changes.mjs34 → 49 checks on Windows, all pass, the IBM checker clean on the bar, Compare and File → Compare;npm run check0 errors, 51 tests. M8.3 stays open for report snippets in PBIR form and the A6 screen-reader steps.
- What:
pbi_core::diff_documentsgives each object aSnippet(before and after text): model objects as TMDL, written bypbi_tmdl::write_modelfrom each side's model and cut out of the CST (descriptions kept, de-indented; a changed table without its columns, measures, partitions, hierarchies and calculation items), report objects as their JSON properties; at most 200 lines per side.doc.diffreturns it assnippet(ops.gen.tsregenerated). The app's Compare shows it with a line diff (app/src/lib/lineDiff.ts, a read-only text box with-/+lines). - Why: M8.3 scope ("with TMDL and PBIR snippets"). The JSON is DashCraft's view of the report object, not the PBIR file's text: in-memory report objects have no PBIR text until saved.
- Numbers:
crates/pbi-core/tests/diff.rsasserts the snippets of the six scripted Acme changes; a 150-column table is cut at 200 lines;npm run check48 → 51 tests;external-changes.mjs32 → 34 checks, all passing (IBM checker and contrast included). - Open: comparing two documents or folders from the app.
- What:
App.sveltepollsdoc.externalChangesevery 1.5 s while the window is visible (not for documents that do not track their files; checks that straddle a save are dropped) and shows a notification bar with Reload (doc.reload, asking before it discards unsaved edits), Keep mine (hidden until another set of files changes; Save keeps asking) and Compare (CompareDialog.svelteoverdoc.diffagainst disk). When the bar closes under the focus, focus goes to the ribbon tab before it. Newbackend.tswrappersexternalChanges,reloadDocument,diffWithDisk; newscripts/app-checks/external-changes.mjs. - Why: M8.2 and M8.3 (ROADMAP "Next"); the commands existed headless only.
- Numbers:
external-changes.mjs32 of 32 on Windows (bar about 1 s after an external TMDL edit, acceptance limit 2 s; IBM checker WCAG 2.2: no violation on the bar or Compare; lowest text contrast ≥ 4.5:1);recovery.mjs16 of 16 andediting-smoke.mjs23 of 23 unchanged. - Open: the A6 screen-reader steps for the bar; TMDL/PBIR snippets in Compare and comparing
two projects; push notifications of external changes for
serveand MCP clients.
- What:
app/src-tauri/src/auto_recovery.rsturns recovery on at startup (journals inRecoveryStore::default_location(), the choice in the config folder'sauto-recovery.json, on by default as in Desktop) and theauto_recovery/set_auto_recoveryapp commands. The UI lists the journals after startup (RecoveryDialog.svelte: Restore, Discard after a question, Decide later) and has an Options → Auto recovery page.build.rsembeds the Common Controls v6 manifest through linker arguments instead of tauri-build, so the app's test binary runs on Windows (it died at load withSTATUS_ENTRYPOINT_NOT_FOUND, tauri-apps/tauri#13419); the shipped binary's manifest is unchanged. The app checks use a freshDASHCRAFT_DATA_DIR. - Why: M8.1 (ROADMAP "Next"); the headless part had no host turning it on.
- Numbers:
cargo test -p dashcraft-app31 → 32, now passing on Windows too;scripts/app-checks/recovery.mjs16 of 16 (edit, crash, restore with undo, crash, discard);editing-smoke.mjs23 of 23. - Open: a per-file Auto recovery switch (Current file) and an "open saved" choice beyond Discard; M8.2's notification bar and M8.3's Compare view.
- What:
pbi_ops::recovery(RecoveryStore: versioned JSON-lines journals in the per-user data folder, created0600, a cut-short last line tolerated, foreign or newer formats refused).Registry::executejournals each mutating command that changed the revision, under the document's lock, and deletes the journal ondoc.save,doc.saveAs,doc.reloadanddoc.close; journal errors only log. A journal starts only from a saved document and tracks its undo/redo depth: an undo past its start, or edits made while recovery was off, stop journaling until the next save, so every journal replays from disk.doc.recovery.list,doc.recovery.restore(reopen with the header'sdoc.openparameters and replay through the registry; replay relies on the per-document deterministic object ids) anddoc.recovery.discard. Off unless the host callsWorkspace::set_recovery(ADR-0013 §5). The journal holds commands, not the undo stack; the replay makes the restored edits undoable again. - Why: M8.1, after M8.2 and M8.3 (ROADMAP "Next").
- Numbers: 3 unit tests,
crates/pbi-ops/tests/recovery.rs(4 tests: seven edits survive a dropped workspace and replay to the same measures, a failed replay keeps the journal, untracked edits and undos past the start drop it, off by default); catalog +3 commands. - Open: the app's opt-in, startup prompt and Options page (done above).
- What:
pbi-core::diff(diff_documents): matches model and report objects by name (case-insensitive; relationships by name, pages and visuals by their PBIR name) and compares their serialized properties without ids, origins or child collections, so formatting never counts.doc.diff(pbi-ops) runs it between the current revision and the files on disk (Session::read_path), another open document or a path. - Why: M8.3, the next step of M8 (ROADMAP "Next"); the Compare view and Keep mine/Compare of M8.2 build on it.
- Numbers: 4 unit tests,
crates/pbi-core/tests/diff.rs(an Acme copy with six scripted changes and one reformatted visual: exactly six objects), 1 test incrates/pbi-ops/tests/save.rs; catalog +1 command. - Open: TMDL/PBIR text snippets per change and the app's Compare view.
- What: three
pbi-opsworkspace commands over newpbi-sessionmethods.Session::external_changesrescans the PBIP fingerprint against the open/saved baseline;Session::reloadrereads the document in place (same resolver, clock, reader options) and publishes it only after the read succeeds.History::reset(pbi-model) starts a clean history at the next revision, so a reload never rewinds it (ADR-0012).DocEntry::reloadalso forgets the loaded data and the canvas state;doc/changedgainsreloaded.doc.reloadis not agent-safe (ADR-0012 §6) and refuses unsaved edits withoutdiscardChanges(ADR-0013 §3). - Why: M8.2, the first step of M8 (ROADMAP "Next");
doc.status/doc.reloadmoved there from M6. - Numbers: 2 new tests in
crates/pbi-ops/tests/save.rsand 1 in pbi-model; catalog +3 commands. - Open: the file watcher with notifications, the app's notification bar, the Compare view (M8.3) and recovery (M8.1).
- What:
pbi-mregisters every thunk (as aWeak, pruned like frames) andInterp::releasereleases them: a released thunk drops its memoized value and reads as "released". Values that contain their own lazy slot (let r = [a = @r] in r,{@r}, a shared query that refers to itself in a record or list, or returns#shared) formed a thunk → value → thunkArccycle that clearing frames never broke. Acfg(test)count of live thunks and frames backs a new test over these shapes (leak_testsincrates/pbi-m/src/eval/mod.rs); tworegression-*seeds underfuzz/seeds/m_eval/. - Why: the nightly Fuzz job failed on 2026-11-10 and 11-11 with
m_evalleaks (a shared query#shared); a redmaincomes first (AGENTS.md §8). - Numbers: the test finds 7 leaks across 9 cases without the fix and 0 with it;
pbi-mandpbi-sessiontests pass. P05 357 ms with the fix against 359 ms without it, and P11 184 ms, on the same Windows machine (AMD, 12 cores). - Open: P05 is over its 250 ms target on that machine both with and without the fix. The only committed baseline is a macOS M4 Pro at 149 ms, so this is the hardware, not a regression; a Windows baseline would make that visible.
- What:
save_as_template_keeps_the_expected_valuesincrates/pbi-ops/tests/e2e.rs: Acme withOrders[Line Amount]renamed, written as a PBIT (convert.pbit, the Stores report), opened in a fresh workspace, refreshed from its CSVs through the blob map; every row count and measure ofexpected.jsonand the Stores page's Total Sales card match. DESKTOP-PLAN: M6's command list dropsdoc.statusanddoc.reload, which were never built and belong to M8.2 (external changes, Reload), and M8's list gains them. - Why: a check of every M6 item after A6 found that only the PBIP half of acceptance 6 had a test, and that the plan still listed the two commands under M6.
- Numbers: the new test passed against the code already on
main, so it adds coverage without a fix. Both criterion 6 tests pass in 1.6 s. - Open: P09 is 53 ms on the CI runner's quick run, against a 50 ms target. It is within target on a Windows desktop (acceptance 12).
- What:
.github/workflows/screen-reader.ymlbuildsdashcraft-appon hosted runners and runsscripts/app-checks/screen-reader.mjsthrough Guidepup with NVDA (Windows), VoiceOver (macOS) and Orca (Linux, Xvfb). The script walks the M6 editing journey and the M7 formula bar journey (S6 and S12–S22), records what the reader says at each step, and uploads the spoken log, a report written after every step, and screenshots. NVDA gates; VoiceOver and Orca are informational (ADR-0030, which supersedes ADR-0015 decision 3). The app fixes it found: the File backstage traps focus (use:modal), Option+Q reaches the formula bar on macOS, the Ctrl+K Ctrl+I chord survives a released Ctrl and is announced, and Esc clears a cancelled draft's problems (DaxEditor.svelte). - Why: A6 was the last open criterion of M6 and M7; it needed a person on each OS until Guidepup could drive the readers on CI runners. Narrator stays by hand before the 1.0 audit (M31.8): its evidence in CI is the UI Automation tree the A1–A5 checks already cover.
- Numbers: NVDA passes all 27 required steps of 32 (about 4.5 minutes); VoiceOver 24 to 26 of 32
in about 13 minutes; Orca 20 of 32 (runs 4 and 5 on PR #66).
formula-keys.mjs44 checks (one new, the Esc case),editing-a11y.mjs21. Commit633faa8(PR #66, squashed). - Open: VoiceOver doesn't read the active suggestion (S14,
aria-activedescendanton a text area), and only sometimes reads the suggestion count (S13) or announces a description's apply (S25, likely thereadonlytoggle while saving). No VoiceOver command reads the window title (S1). Orca under Xvfb doesn't voice polite live regions. Narrator still needs a person before M31.8.
- What:
pbi-tmdl's writer (Writer::table) writes every spelling ofcalculationGroupleft in a table's untyped properties (the reader takes the first unnamed one as the calculation group and keeps the others) after the typed group. It matched only the exact spelling, socalculationgroupwas written among the scalar properties, before the group, and became the group on reading back. Regression testfuzz_findings_round_tripincrates/pbi-tmdl/tests/robustness.rs(both writers, the fuzz target's invariants) and the seedfuzz/seeds/tmdl/regression-calc-group-keyword-case.tmdl. - Why: M7 acceptance 4: a manual run of the
Fuzzworkflow onmain(f7afc32, 60 s per target) to cover the language-service targets added in M7.dax_service,m_serviceandtmdl_servicehad no findings; thetmdlround-trip target found this one (a 353-byte input, minimized by hand to 6 lines). - Numbers: the test fails without the fix and passes with it;
pbi-tmdl,pbi-coreandpbi-opstests pass unchanged (canonical output changes only for tables with such a property). - Open: A6 for M7.
- What: a Language Server Protocol 3.17 server,
dashcraft lsp [--stdio] [--model PATH](crates/dashcraft-cli/src/cmd/lsp.rs,src/lsp/):transport.rs(Content-Lengthframing, 64 MiB cap),text.rs(UTF-16 positions, incremental changes, language by id or extension,file:URIs),files.rs(a TMDL file'sdefinitionfolder, read from disk with a size and mtime cache, capped at 10,000 files and 256 MiB),mod.rs(lifecycle, document sync, the model from--modelorinitializationOptions, reopened when a file under it is saved; diagnostics pushed once the incoming queue is empty;$/cancelRequesteven before the request arrives) andfeatures.rs(completion, hover, signature help, definition, references, highlights, formatting, quick fixes, semantic tokens). Every answer comes from a registry command (dax.*,m.*,tmdl.*,doc.open) run throughRegistry::execute, so no new command and no new crate edge. "Did you mean" suggestions become quick fixes: DAX's are mapped onto the flagged range (a bracketed column or measure, a quoted or plain table); M's and TMDL's carry their replacement. TMDL formatting keeps Desktop's tabs unless the file already uses spaces. Setup for Neovim, Helix and VS Code indocs/CLI.md. - Why: M7.6 (DESKTOP-PLAN), the last M7 step: the language services of M7.1–M7.4 in external editors. M7 is complete apart from A6.
- Desktop check: the server adds no language logic; its diagnostics, completion and
formatting are the commands checked against Power BI Desktop (DAX arity, M library and
messages, the 2,507 DAX queries) and Microsoft's TMDL reader and writer in M7.1–M7.4. A manual
Fuzzrun onmaincovers thedax_service,m_serviceandtmdl_servicetargets (acceptance 4). - Numbers: 7 protocol tests with a scripted client (
tests/lsp.rs: lifecycle and errors-32002,-32600,-32601,-32700,-32800; DAX, M and TMDL features with exact ranges; a TMDL folder on disk with a cross-file definition and diagnostics; names from a model opened byinitializationOptionsand again on save; Acme from--model; exit codes), 13 unit tests; dashcraft-cli lib tests 7 → 20. About 2,450 lines of Rust (including 706 of tests). The 7 protocol tests take 0.1 s in a debug build. - Open: A6 for M7 (a person); DAX-only navigation and tokens (M has no references or tokens service yet); no VS Code extension is shipped.
- Commit:
3f872e3(PR #64).
- What: the formula bar's DAX editor gets the keys of Microsoft's table for Power BI Desktop's
formula editor that one caret can do: Tab and Shift+Tab, Ctrl+] and Ctrl+[ indent and outdent;
Ctrl+M makes Tab move focus (shared by every formula editor in the window, in the editor's
accessible description and announced); Shift+Enter breaks the line keeping its indentation and
Ctrl+Shift+Enter inserts one above; Alt+↑ ↓ move, Shift+Alt+↑ ↓ copy and Ctrl+Shift+K
delete the lines; Ctrl+L selects the line (again: the next); Ctrl+X and Ctrl+C without a
selection take the line (the line is selected on keydown so the browser's own cut and copy run,
and the clipboard handler writes the line); Ctrl+Shift+\ jumps to the matching bracket
(strings and comments skipped); Shift+Alt+→ ← expand and shrink the selection (word,
bracket contents, brackets, line, all); Ctrl+↑ ↓ and Alt+PgUp PgDn scroll. Pure helpers in
app/src/lib/daxEditor.ts, each edit applied withinsertTextso the editor's undo keeps it.scripts/app-checks/formula-keys.mjsruns the keys and A1–A5 with the suggestion list, parameter info, a description and a squiggle open; the checker helpers moved fromediting-a11y.mjsto a shareda11y.mjs. Results indocs/accessibility/m7-formula-bar.md. - Why: M7.5 (DESKTOP-PLAN), its acceptance criterion 5 (A1–A6 for the formula bar with completion lists and squiggles); keys from Microsoft's Formula editor in Power BI Desktop.
- Numbers: app node tests 35 → 45 (
daxEditor.test.ts15 → 25);formula-keys.mjs43 of 43,formula-intellisense.mjs20 of 20,editing-a11y.mjs17 of 17 andediting-smoke.mjs23 of 23 on Windows / WebView2. Contrast: suggestions at least 5.4:1, the selected suggestion's outline 5.39:1, squiggles 5.86:1 (error) and 5.73:1 (warning), parameter info 6.19:1, descriptions 6.07:1; focus ring 2 px at 5.21:1. Main chunk 445 kB → 453 kB. Found by the tests: moving the last lines down left the selection past the end of the text. - Commit:
f7afc32(PR #63). - Open: A6 (screen-reader runs) needs a person; extra cursors, column selection, Ctrl+G and
Ctrl+U are not supported; M7.6 (
dashcraft lsp).
- What: a reusable DAX editor,
app/src/components/DaxEditor.svelte, now in the formula bar (FormulaBar.svelte) for measures, calculated columns and calculated tables. A transparent textarea over a coloured overlay keeps native editing, selection, IME and undo; the overlay drawsdax.tokenscolours anddax.diagnosticssquiggles, realigned while typing until the next answer (150 ms debounce, late answers dropped). A suggestion list fromdax.completeopens on a name,[or'and on Ctrl+Space (↑ ↓ PgUp PgDn, Enter or Tab insert without doubling a function's(, Esc closes; a listbox witharia-activedescendant, a side panel with the item's description and a polite status); parameter info fromdax.signatureHelpafter(and,and on Ctrl+Shift+Space (active parameter bold); descriptions fromdax.hoverand the problems under the pointer or on Ctrl+K Ctrl+I; Shift+Alt+F formats the expression afterName =withdax.format. The editor's accessible description carries the problem at the caret, else the first error. Pure helpers inapp/src/lib/daxEditor.ts(overlay segments, range shifting, caret geometry, completion edits, keys);backend.daxServicesends the requests for the open document. The bundle's dependencies go to avendorchunk (Vite's 500 kB warning).editing-a11y.mjsnow measures the contrast of the coloured overlay, since the textarea's own text is transparent. - Why: M7.5 (DESKTOP-PLAN), the editor the M7.1 and M7.2 commands were built for; the keys follow Microsoft's documentation of Power BI Desktop's formula editor. The calculation item, format string and RLS editors (M10, M11) reuse the component.
- Numbers: app node tests 19 → 35 (
daxEditor.test.ts15, one inediting.test.ts; token colours at least 4.5:1 on the editor background);formula-intellisense.mjs20 of 20 checks,editing-smoke.mjs23 of 23 andediting-a11y.mjs17 of 17 (lowest text contrast 5.98:1) on Windows / WebView2. Main chunk 486.65 kB → 445 kB plus a 64 kB vendor chunk. Found live: the input handler ran before Svelte'sbind:valueupdated, so requests used the previous text; the editor now reads the textarea itself. - Commit:
3d4ff95(PR #62). - Open: M7.5b (Desktop's line-editing keys, Ctrl+M, A1–A6 for the completion list and
squiggles), M7.6 (
dashcraft lsp).
- What:
pbi_tmdl::service::format(service/format.rs) withFormatOptions(tabs or 1–16 spaces, kept or chosen line ending) andFormatError::{Syntax, Unstable}; the service re-exportsIndentStyleandLineEnding. It re-emits the CST: each structural line indented by its depth and spaced as the writer spaces it, indented expression blocks two levels below their line (one for a shallow nameless property, as Desktop writes KPI expressions) with the common prefix replaced and relative indentation and inner trailing white space kept, fenced blocks moved with their closing fence, comments and///lines at the node's level. Blank lines: one before named objects and the firstrefline, none beforekeyword: valueproperties, flags and same-typereflines; kept as written before nameless objects,refruns of another type and perspective members, where Desktop and TOM disagree or vary. The output is parsed again and its shape (keywords, names, operators, values, expressions, descriptions, comments, children) must equal the input's, elseUnstable. New commandtmdl.format(indentWidth,lineEnding;ok: falsewith the TMDL110 diagnostic on a syntax error). Thetmdl_servicefuzz target and the mutation test also format (idempotent; the mutation test also requires the same model). - Why: M7.4 (DESKTOP-PLAN): "formatting that matches the writer"; the TMDL view and external editors need a formatter that leaves Desktop's files alone.
- Numbers: 88 → 89 registry commands. Ground truth: all 58 files saved by Desktop and the
TOM library (Acme,
tmdl-probe, dax-lab, GT-4 s24 before and after, CRLF kept) and all 53 fileswrite_modelwrites for those models format to themselves; each of the 58 with its layout damaged (every structural line respaced with trailing white space, blank lines doubled or removed, deep blocks indented two more levels, LF for CRLF) formats back to the saved bytes, and each goes to four spaces (stable) and back to the original. The first run found the two places where TOM and Desktop differ (blank lines betweenreftypes, before perspective members). Mutation test (3,000 cases): 1,733 of 1,735 parsing files formatted, the 2 others declined (a header value continued by a block as the first indented line, which space indentation cannot express); 20,000 release cases (seed 11): 11,666 of 11,686 formatted, 20 declined, no other failure. Tests:format.rs7 unit tests,groundtruth.rs9 (3 new),tmdl_language.rs10 (3 new). - Commit:
d414523(PR #61). - Open: M7.5 (formula bar IntelliSense), M7.6 (
dashcraft lsp).
- What:
pbi_tmdl::service::{complete, hover}(service/complete.rs) over a tolerant outline of the text (service/outline.rs: structural lines, parents and expression blocks of half-typed TMDL, and what the cursor is on: a keyword, a value, a name, arefobject type). The other files of the folder are passed asFileTexts: their tables (with columns, measures, hierarchies and whether a partition is calculated), other objects anddatabasecompatibility level are indexed as the diagnostics index them. Completion: the keywords of the line's context from the catalog, at the compatibility level, without properties already set by a sibling, properties after a child object, objects before a property, or a secondmodel/database, plusrefand the opaquetranslations; values ofbooland enum properties; references (sortByColumn,fromColumn,defaultHierarchy,queryGroup,tablePermission,perspectiveColumn,ref table, …) resolved ascheck_referenceresolves them; ranked exact, prefix, word start, contains. Hover: keyword forms, value type and level against the database's; enum and boolean values; a referenced object's///description, declaration line and file. New commandstmdl.completeandtmdl.hover(path+filesfor the folder, positions in UTF-8, UTF-16 or line/column). The fuzz targettmdl_serviceand the robustness mutation test also complete and hover at several cursors. - Why: M7.4 (DESKTOP-PLAN): the TMDL view and external editors need completion of properties and object references.
- Numbers: 86 → 88 registry commands. Recall over the Acme,
tmdl-probe, dax-lab and GT-4 models (written by Desktop and TOM): 1,936 of 1,936 keywords, 497 of 497 values and 48 of 48 references offered at their end and hovered; precision: 841 completions written into the first and last child position of each kind of object in Acme and dax-lab, in every offered form, give no keyword error from the diagnostics; both tests take about 6 s (debug). Found and fixed on the way:ref culture(TOM's spelling) was not offered, a secondmodelordatabasewas, and booleans had no hover. Tests:complete.rs8 unit tests,outline.rs3,groundtruth.rs6 (2 new),tmdl_language.rs7 (3 new); a 20,000-case mutation run found no completion or hover outside its file. - Commit:
387188e(PR #60). - Open: M7.4c (
tmdl.format), M7.5, M7.6.
- What:
pbi_tmdl::service(new module):catalog(catalog.txt, generated from the recording: per context the keywords, their forms, value types and compatibility levels, and the names and integers of each enumeration) anddiagnosticsover a set ofSourcefiles (codes TMDL101–113 errors, TMDL120 warning, plus the parser's TMDL006/007), with "did you mean" suggestions; references are resolved when the files form a model folder, compatibility levels when adatabasedeclares one. New registry commandtmdl.diagnostics(categorytmdl; UTF-8, UTF-16 and line/column positions). The oracle is Microsoft's TMDL reader (TOM'sTmdlSerializerfrom NuGet, black box; ADR-0029):scripts/groundtruth/Record-Tmdl.ps1records the corporatmdl-catalog(73 cases over the newreference/groundtruth/tmdl-probemodel) andtmdl-validity(54 edits of Acme), generated bygen_corpus.py;cargo xtask groundtruthlists them.crates/pbi-tmdl/tests/groundtruth.rsregenerates the catalog and compares every verdict. New fuzz targettmdl_service; the mutation test ofcrates/pbi-tmdl/tests/robustness.rsalso checks the diagnostics. - Why: M7.4 (DESKTOP-PLAN): the TMDL view and external editors need to underline what Desktop will refuse to open, before the model is saved.
- Numbers: 85 → 86 registry commands; 16 → 17 fuzz targets. Catalog: 43 contexts, 160
keywords, 30 enumerations. 4,106 of 4,109 catalog checks match the reader (3 ledgered: a
bindingInfowithouttype, twice, is lenient; an emptytranslationsblock, which crashes the reader, is by design); 78 of 78tmdl-validitychecks match (verdict and line); no error on the Acme,tmdl-probe, dax-lab and GT-4 models. The whole comparison takes about 0.5 s. Tests:diagnostics.rs7 unit tests,groundtruth.rs4,tmdl_language.rs4 (pbi-ops); a 20,000-case mutation run of the robustness test found no diagnostic outside its file. - Open: M7.4b (completion and hover from the catalog), M7.4c (
tmdl.format), M7.5, M7.6. - Commit:
ebbf24e(PR #59).
- What:
pbi_m::service::format(service/format.rs) and the registry commandm.format(categorym;text,maxWidthdefault 100,indentWidthdefault 4 up to 16,useTabs; returnsok,text,changedand a syntaxdiagnostic). Comments attach to the tokens they precede or follow; each construct becomes a group that breaks only when it does not fit (Wadler-style): oneletstep per line with blank lines between steps kept, operators leading continuation lines,else ifchains at one level,try … otherwise/catch, records, lists, calls, record and table types, function bodies on the next line. Generalized identifiers and literals are kept verbatim. The output is re-parsed and its tree (spans cleared), tokens and comments must equal the input's, else the call fails rather than change the query. The fuzz targetm_servicealso formats with the default options and with options from its first byte. - Why: M7.3d (DESKTOP-PLAN), M7 acceptance 1 for M, GAPS §2 language service. Closes M7.3.
- Numbers: 84 → 85 registry commands. 6 unit tests; 42 of the 44 queries of Acme and the
samples change at the default width, and all 44 are stable at width 100 and at width 40 with
2-space indents (
crates/pbi-session/tests/m_service.rs); registry tests 6 → 8 (crates/pbi-ops/tests/m_language.rs); the 268m-functionsexpressions formatted at the default width and at width 20 with tabs give Desktop's recorded results (267 match, the same 1 by-design ledger entry; unknown-name errors compared without their moved line and column). A replay of the fuzz target (about 3 million byte mutations of the seeds, then 320,000 comment and whitespace insertions into 17 parseable seeds including the Acme queries) found no unstable or non-idempotent output. Seeds 12 → 14. - Commit:
9d5e438(PR #58). - Open: M7.4 (TMDL language service), M7.5 (formula bar), M7.6 (
dashcraft lsp); semantic tokens and references for M. A line comment between)and the,on the next line leaves the comma on its own line (stable, cosmetic).
- What:
pbi-mgains a tolerant lexer (tokenize_tolerant: an unterminated text, quoted identifier or comment runs to the end of the text) and a scanner (service/scan.rs) that reads incomplete text: the scopes visible at a cursor (let steps, record fields, function parameters,each's_, section members,@self-references; Desktop's scoping), the call and argument around it and the kind of position (declaration, field name, type afteras/is, field type of a record or table type, expression).service/help.rsgives hover (steps, parameters, model names with their kind, type and description, library functions with their signature, types, constants, unsupported functions) and signature help (label, UTF-8 parameter ranges, active parameter);service/complete.rsranks steps and locals, model names, keywords and the library by match and by kind, quotes names that need#"…", completes inside#"…and after@, and offers primitive types afterasand any expression in a field type (type table [X = Int64.Type]).Environmententries carry the kind, M text, type and description of each model name (pbi_session::m_environment: queries, parameters with their type, functions, tables). New registry commandsm.hover,m.signatureHelpandm.complete(categorym, UTF-8, UTF-16 or line and column positions, with or without a document). New fuzz targetm_service. - Why: M7.3c (DESKTOP-PLAN), GAPS §2 language service: the M editor needs help at the cursor.
- Numbers: 81 → 84 registry commands; 15 → 16 fuzz targets. Over Acme and the four committed
samples, every one of 418 free names hovers to a model or library name and completes first at
its end, and signature help names each of 285 library calls (
crates/pbi-session/tests/m_service.rs); no panic at any cursor of the Acme queries. Unit tests:scan.rs6,help.rs4,complete.rs6,names.rs3,environment.rs1,lexer.rs+2; registry tests incrates/pbi-ops/tests/m_language.rs3 → 6. A mutation replay of the fuzz target found an empty completion label for the valid step name#""(fixed, seed added). GAPS §2 language service 2 → 3. - Commit:
657df86(PR #57). - Open: M7.3d (
m.format), semantic tokens and references for M.
- What:
pbi-mbinds names when a query is compiled, as Power BI Desktop does:refs.rsscopes let and record initializers exclusively (a step does not see itself), lists calls of free names and the free names of a section; the newbinding.rsdecides what is unknown (library names, custom-connector names) and holds Desktop's messages;eval_sourceand shared-query compilation reject an unknown name before evaluating anything, and theSelfOnlylookup fallback is gone.Expression.Evaluatejoins the library;#sharedlists the whole catalog; the arity error drops the function name.pbi_m::service::diagnostics(syntax,unknownNamewith a suggestion,argumentCount,unsupportedandextensionNamewarnings, anEnvironmentof model names) backs the newm.diagnosticscommand (categorym;pbi_session::{m_service, m_environment}). - Why: M7.3b (DESKTOP-PLAN), GAPS §2: the M editor needs diagnostics, and the evaluator was more lenient than Desktop (it ran queries Desktop refuses).
- Desktop check: partition queries of a temporary table, refreshed through TMSL, showed that an
unknown name anywhere (unused step,
try, function body, untaken branch, type) fails the whole query with "The name 'X' wasn't recognized. Make sure it's spelled correctly." (two spaces), that a misspelled library name gives the same message, and that the arity message never names the function. The M recorder evaluates cases withExpression.Evaluate(case, Library), whose message differs ("[l,c-l,c] The name 'X' doesn't exist in the current context."); the M ground-truth test now evaluates its cases the same way. 29 newm-functionscases (names/*,arity/*) and the suitem-arity(scripts/groundtruth/m-arity.m: one argument too few and too many for each of the 941 functions). - Numbers:
m-functions239 → 268 expressions, 267 match, 1 by design;m-arity: 941 functions, the language service's messages all match and so do the evaluator's 761 calls of implemented functions;m.diagnosticsfinds no false error in the 44 queries of Acme and the committed samples; 6 unit tests inservice/diagnostics.rs, 3 inrefs.rs, 3 registry tests incrates/pbi-ops/tests/m_language.rs. - Commit:
e4b7e72(PR #56). - Open: M7.3c (
m.hover,m.signatureHelp,m.complete), M7.3d (m.format).
- What:
pbi-mgains 49Table.*functions in two new modules.stdlib/table_ops.rshas the reshaping functions (joins with everyJoinKind,NestedJoin,AddJoinColumn,GroupwithGroupKind.Localand comparers,Pivot,Unpivot,UnpivotOtherColumns, the three expansions,AggregateTableColumn,SplitColumn,CombineColumns,CombineColumnsToRecord,Transpose);stdlib/table_rows.rshas the row functions (Max/Min/MaxN/MinN,AddRankColumn,Schema,ColumnsOfType,FromValue,ToList,Partition,Split,Repeat,AlternateRows, row insertion, removal and replacement,Contains*,PositionOf*,*MatchingRows,FindText, …).table.rsshares its helpers and sorts with a panic-free stable merge sort (an inconsistent comparer cannot panic it). Conversion errors take Desktop's wording for structured values ("a value of type List", "We cannot convert Type to Table type"). - Why: M7.3 (DESKTOP-PLAN), GAPS §2 "Standard library": the 10 table functions ledgered in part 1 and the rest of the commonly generated table steps.
- Desktop check: 37 new
m-functionscases, recorded in several rounds against Power BI Desktop 2.159, settled the edge cases: column placement after unpivot and combine (the last listed column's place), pivot types (the value column's, nullable),ExtraValues.List, the ordering ofAddRankColumnand of ties inMax/Min,Number.Modsemantics inPartitionhashes,Contains(record fields only) versusPositionOf(whole row), out-of-range argument messages, andTable.FindTextlooking into lists and records. A record missing a column makes its row an error rather than the table (InsertRows,ReplaceMatchingRows,FromRecords); such errors escapedtryin Desktop until the corpus read every cell throughx{i}inside its owntry. Desktop's join row order is not specified; the corpus sorts join results. - Numbers: library 461 → 514 names (335 → 384 functions, 49 → 50 types, 77 → 80 constants;
Table.*functions 45 → 94 of Desktop's 114);m-functions202 → 239 expressions, 238 match, 1 by design; ledger 12 → 2 entries (one M, one DAX format); 6 new tests instdlib.rs. - Commit:
210c667(PR #55). - Open: the 20
Table.*functions left out (fuzzy matching, keys, partition keys,Table.View,Table.Profile, connector internals); M7.3b–d (M diagnostics, hover, completion, formatting).
- What:
pbi-m's library gains 69 functions, the missing enum constants and 18 enum*.Typevalues.stdlib/text.rs: sevenSplitter.SplitTextBy*functions,Text.NewGuid(version-4 GUIDs from a generator seeded by the evaluation clock, so aFixedClockrepeats them),Text.PositionOfAny;number.rs:Number.Bitwise*;list.rs: statistics (Median,Mode,Modes,StandardDeviation,Covariance,Product,PercentilewithPercentileMode) and editing (Split,Alternate,InsertRange,ReplaceRange,RemoveRange,MaxN,MinN,TransformMany, …);datetime.rs: week, quarter, day and hour boundaries,AddWeeks,AddQuarters,*.ToRecord,MonthName/DayOfWeekName(names for 18 languages from Desktop in the newdate_names.rs), Desktop's 0001–9999 date range and its overflow andDayerrors;record.rs:TransformFields,ReorderFields; newbinary.rs:Binary.*,BinaryEncoding,Json.FromValue(Desktop's escaping, durations asP1DT2H3M4S, NaN asnull). - Why: M7.3 (DESKTOP-PLAN), GAPS §2 "Standard library": the ledgered functions of M7.3a.
- Desktop check: 11 probe batches against Power BI Desktop 2.159 settled the edge cases
(splitter quoting, percentile interpolation, week numbering, culture names, overflow messages,
strict base64, JSON escaping). Suite
m-functionsgrows from 177 to 202 expressions: 191 match, 10 table functions ledgeredunsupported(part 2), 1 by design. Desktop evaluatesBinaryvalues lazily, so an error insidetry Binary.FromList(…)escapes thetry; the corpus forces such values withBinary.Length. - Numbers: library 351 → 461 names (266 → 335 functions, 31 → 49 types, 54 → 77 constants);
ledger 29 → 12 entries; new tests in
stdlib.rs(GUIDs, date range, JSON, base64) andbinary.rs. - Commit:
dfad70a(PR #54). - Open: part 2, the table functions (
Table.Group,Pivot,Unpivot,Join,NestedJoin,Transpose,SplitColumn,Max,Schema, expansions).
- What: the ground-truth recorder evaluates M: a corpus with
"language": "m"runs each expression in Desktop's mashup engine through a temporary hidden table (Invoke-GtMCases, an M probe that encodes values as typed JSON, inscripts/groundtruth/GroundTruth.psm1). Two suites:m-library(scripts/groundtruth/m-library.m: every dotted name of#sharedwith kind, parameters, return type, type or constant value) andm-functions(177 expressions fromgen_corpus.py).pbi_m::service::{catalog, catalog_entry}readsrc/service/library.txt, generated from them-libraryrecording bytests/library.rs, which also checks every implemented name against it.tests/groundtruth.rscompares them-functionsrecording with DashCraft (the DAX side's ledger, report and rules).value/digits.rs(decimal digit buffers) gives .NET's number text (R and G layouts, E, F, N, P, D, X and custom formats) and decimal rounding toText.From,Number.ToText,Number.Round*and error messages. Fixes: error records (Message.Formatplaceholders,ErrorCode), splitter quoting (csvStyle,startAtEnd),#datetimezoneoffsets, text ranges, parameter names,Number.MaxValue/MinValueremoved (not in Desktop).pbi-ops' DAX-language test skips M corpora. - Why: M7.3 (DESKTOP-PLAN): M hover, signature help and completion need Desktop's library, and ADR-0011's ground truth did not cover M yet (GAPS §2).
- Desktop check: Power BI Desktop 2.159. Library: 1,142 names (941 functions, 69 types, 132
constants and values); DashCraft's 351 names (266 functions) all match their kind, parameter
names and counts, types and constants.
m-functions: the first comparison had 36 mismatches; now 149 of 177 match, 27 call functions DashCraft lacks (ledgeredunsupported), 1 by design (Desktop keeps number literals as decimals until arithmetic). Desktop probes settled the number rules: G15 when it round-trips else G17, numbers below 7.9e28 written out from 15 digits,Ewith a signed 3-digit exponent, F/N/P/custom rounded half away from 15 digits,Number.Roundin decimal withRoundingModebreaking ties only. - Numbers: new tests:
library.rs3,groundtruth.rs3,digits.rs2, regression cases instdlib.rsandeval.rs; GAPS §2 3.1 → 3.3. Ground truth: 14 suites, 3,366 cases, 29 ledger entries. - Commit:
5868808(PR #53). - Open: the 27 ledgered functions (
Table.Group,Table.Pivot,Table.Join,Splitter.SplitTextBy*,List.Median,Date.WeekOfYear, …), then M7.3b–d (diagnostics, hover and completion, formatter).
- What:
pbi_dax::service::format(formatter.rs) withFormatOptions(line width, indent width or tabs, keyword and built-in function casing) and thedax.formatcommand. Comments are attached to the nearest syntax node and kept, single blank lines betweenVARs andDEFINEs are kept, user names and literals keep their spelling. The layout is a group-based pretty printer: a call, table constructor or operator chain stays on one line when it fits, else breaks one argument per line or before each operator, nested by precedence. A safety net re-tokenizes and re-parses the output: if its tokens or syntax tree differ from the input's,formatreturnsUnstable(the command reports an internal error) instead of text. The generator ofroundtrip.rsmoved totests/common/generate.rsto be shared. Thedax_servicefuzz target also formats every input with the defaults and with a narrow width taken from the first byte, checking for noUnstableand idempotence (new seedformat_comments.dax). - Why: M7.2 (DESKTOP-PLAN), the formatter the DAX query view and the formula bar (M7.5) need; acceptance 1 for DAX.
- Desktop check: the 2,902 queries of the
acme-*,format,dax-arity,dax-functionsanddax-lab-tablescorpora, formatted at width 40 with tabs and lower-case keywords and functions (all but 2 syntax-error probes change), were run on Power BI Desktop 2.159 next to the originals on the same models: 2,902 of 2,902 give the same result (2,180 identical values, 722 errors in both). Not committed as recordings (they repeat the corpora). - Numbers:
format.rs19 tests (pbi-dax): layout cases, comments, casing, indentation, CRLF, syntax errors, and properties (idempotent, same significant tokens, same tree, comments kept, stable under four widths, tabs and casings) over every test-data file, 1,500 generated expressions and 300 queries with injected comments, and token soup.dax_language.rs9 → 10 (pbi-ops): all 136 Acme and sample expressions and all 2,507 queries Desktop ran without error format idempotently with no errors after. 79 → 80 registry commands. - Commit:
e56319a(PR #52). - Open: M7.3 (M language service and formatter).
- What:
pbi_dax::service::{semantic_tokens, references}(symbols.rs) over a scope analysis shared with completion (scope.rs:VAR/RETURNscopes, function parameters, queryDEFINEs). Tokens carry 14 kinds, a declaration flag and an unresolved flag (never without a model); references find the symbol at a cursor (variable, parameter, query definition, table, column, measure, function) and every occurrence, named as the model spells it. The registry gainsdax.tokensanddax.references(positions as UTF-8, UTF-16 and line/column through an incremental mapper; the model object'sobjectId). Thedax_servicefuzz target also runs both (tokens ordered and disjoint, the cursor's name among the references, the definition a declaring site). - Why: M7.1d (DESKTOP-PLAN), the highlighting, go to definition and find references the
formula bar (M7.5) and
dashcraft lsp(M7.6) need. - Desktop check: a new test runs
dax.diagnosticsanddax.tokenson every query of the ground-truth corpora that Power BI Desktop ran without error, against its fixture model: 2,507 queries. It found 32 cases:INFO.*functions andNAMEOFcomponents shown as unknown, and a falseunknownMeasureerror onFILTER(INFO.VIEW.COLUMNS(), [Type] <> ...). Fixed:INFO.*names are functions,NAMEOF's component is a keyword, and a bare[name]is not flagged once the text calls anINFOor user-defined function (whose columns are unknown). Now 0 of 2,507. - Numbers: tests
language_service.rs25 → 28 (pbi-dax),dax_language.rs7 → 9 and one unit test (pbi-ops). 77 → 79 registry commands. Commitdc01508(PR #51). - Open: M7.2 (formatter), M7.3 (M language service).
- What:
pbi_dax::service::complete(complete.rs): completion at a cursor from the tokens around it, so it works while the text does not parse. The context decides what fits: an expression start (functions, tables, qualified columns, measures, variables in scope,VAR,RETURN,DEFINE/EVALUATEat the start of a query), after an operand (IN,VAR,RETURNand the query keywords), inside[(the table's or every column and measure), inside'(tables and qualified columns), afterDEFINE,ORDER,START, queryMEASURE/COLUMN; nothing in comments, literals or afterVAR. Variables followVAR/RETURNscopes and parentheses; a query'sDEFINEs count. Ranking: exact, prefix, word start, contains; the active parameter's kind (table,column) first; then variables, functions and keywords, tables, columns, measures. The registry gainsdax.complete(maxItemsdefault 100, at most 1,000,incompletewhen cut). P12dax-complete(perf_dax.rs,perf/budgets.toml). Fuzz targetdax_service(diagnostics, signature help, hover and completion at every offset; 20 seeds from thedax_parseseeds and the service tests). - Why: M7.1c (DESKTOP-PLAN), the completion list the formula bar (M7.5) needs; acceptance 3 (completion p95 within P12's target) and 4 (a language-service fuzz target in the nightly job).
- Numbers: P12 3.0 ms p95 (median 1.5 ms) over 20 tables × 20 columns and 2,000 measures on a
12-core Windows desktop (target 20, max 50). The fuzz target ran 72,362 mutated inputs through a
stable-toolchain harness without a finding (nightly runs it under libFuzzer). Tests:
language_service.rs18 → 25 (pbi-dax; one runs every service at every offset of awkward texts),dax_language.rs6 → 7 (pbi-ops). 76 → 77 registry commands; 14 → 15 fuzz targets. Commit1b77856(PR #50). - Open: M7.1d (semantic tokens, go to definition, find references), M7.2 (formatter).
- What:
pbi_dax::servicegains a function catalog (catalog.txt, parsed once bycatalog.rs: signature, parameters, argument count, return type, category and a DashCraft-written description for each of the 299 functions), argument-count diagnostics (argumentCount),signature_helpandhover(functions, user-defined functions, tables, columns, measures with their expression and format string, variables with their expression, keywords; theDEFINEs of a query count). Both work on tokens, so they answer on text that does not parse yet. The registry gainsdax.signatureHelpanddax.hover(cursor as UTF-8 or UTF-16 offset or line and column);dax.diagnosticsanddax.hovershare the document schema, which now carries the report-level measures' details. Ground truth gains adax-aritysuite (gen_corpus.py): each catalog function called with too few, the fewest, the most and too many arguments; suites can setrecordValues: false(Record-GroundTruth.ps1then records only columns, row count or error). - Why: M7.1b (DESKTOP-PLAN), the next language-service step for the formula bar (M7.5). Arity errors are only worth showing when they match Desktop, so the catalog's counts are checked against it rather than written from memory.
- Numbers: 929 arity probes recorded from Power BI Desktop 2.159: 285 accepted, 530 rejected
with an argument-count message, 114 inconclusive (another error first); DashCraft's catalog and
diagnostics()agree on all 815 conclusive ones, and no recorded query of any suite gets anargumentCounterror. Desktop's answers set counts the signatures alone got wrong (USERNAMEtakes any number of arguments,WINDOWup to 10). Tests:language_service.rs10 → 18 (pbi-dax), 6 catalog unit tests,catalog_argument_counts_accept_every_tested_expression(everyfunctions.rsexpression),dax_language.rs3 → 6 (pbi-ops). Ground truth: 2,259 → 3,188 recorded queries. 74 → 76 registry commands. Commit70e77c5(PR #49). - Open: M7.1c (completion, P12, a language-service fuzz target), M7.1d (semantic tokens, go to definition, find references).
- What:
pbi-daxgains a language service (pbi_dax::service):Schema(tables, columns, measures and user-defined functions from a model, orSchema::unknown()for syntax and function checks only) anddiagnostics(syntax errors, unknown tables, columns and measures with "did you mean" suggestions, functions DashCraft cannot evaluate as warnings; sorted, capped at 1000). The registry commanddax.diagnostics(pbi-ops, throughpbi_session::dax_service) checks a text against a document's model and report-level measures, with UTF-8, UTF-16 and line/column positions. The name matching of the linter's suggestions moved topbi-model(closest_name) and is shared. The evaluator gainsNAMEOF(componentsTABLE,COLUMN,MEASURE,FULL,SELF,PARENT, Desktop's quoting and error messages). - Why: M7.1 (DESKTOP-PLAN), the first step of the language foundation; acceptance 2 asks for
no false errors on every Acme and sample expression. The only warning left there was
NAMEOFin Corporate Spend's field parameters, so it was implemented rather than accepted. - Numbers: 136 DAX expressions (Acme 54, Corporate Spend 23, COVID-19 US Tracking 28, Regional
Sales 23, Revenue Opportunities 8): no errors, no warnings. Tests:
language_service.rs(10, pbi-dax),dax_language.rs(3, pbi-ops),nameof_quoting_query_tables_and_errorsand 17NAMEOFcases infunctions.rs. Ground truth:dax-functions552 → 569 cases, all equal to Power BI Desktop 2.159 (2,259 recorded queries). 298 → 299 DAX functions (24 partial); 73 → 74 registry commands. - Open: M7.1b (completion, signature help, hover, arity checks, P12), M7.1c (tokens, references), a fuzz target for diagnostics (acceptance 4).
- Commits:
6185a50,d8339c6(PR #48).
- What: M6 ticked in the ROADMAP; the plan, ROADMAP and GAPS say where the last open items went: deleting a data column edits its query's M and comes with the Power Query editor (M14.7, M14.9), editing a hierarchy's levels with the hierarchy editor (M10.5). The screen-reader runs of acceptance 13 (A6) need a person and are listed under Open items needing a human decision.
- Why: every M6 scope item (M6.1–M6.11) and acceptance criterion except A6 is done and checked; M7 (language foundation) is next.
- Numbers: docs only.
- Open: A6 with VoiceOver, Narrator, NVDA and Orca (task).
- What:
pbi-session's rename plan rewrites, besides a measure's expression and format string, itsdetailRowsDefinitionand the target, status and trend expressions of itskpi(TMDL objects, VertiPaq metadata and TMSL JSON, line arrays included), and a table'sdefaultDetailRowsDefinition;dryRunlists them (kpi.statusExpression, …), andmodel.dependenciesand deletes list a measure whose KPI or detail rows use the object (a measure's own KPI is not its dependent).pbi-tmdl's writer emits them in Desktop's form: after the scalars, each after a blank line, in the order KPI, detail rows, dynamic format string, then annotations; KPI properties in TOM's order with a multi-line expression one level below its property; a table's default detail rows after its scalars. TMSL{"expression": …}and KPI objects are converted to that form instead of being written as JSON text. - Why: M6 open item "KPI and detail-rows expressions" (DESKTOP-PLAN M6 progress): a rename left them on the old name, which Desktop reports as an error in the KPI or the detail rows.
- Numbers: new tests
renames_rewrite_kpi_and_detail_rows_expressions(pbi-session),renames_rewrite_kpi_and_detail_rows_and_save_them(pbi-ops save, fails without the fix; undo saves the original bytes) andkpi_and_detail_rows_are_written_in_desktop_form(pbi-tmdl: Desktop's text round-trips byte for byte, a scrambled file and TMSL JSON are written in it). GT-6 s25 in Power BI Desktop 2.159: a Desktop variant of the example with a table default detail rows, a measure's detail rows and a KPI measure (multi-line status expression), renamed by DashCraft (Total Sales→GT6 Revenue,Orders[Line Amount]→GT6 Amount) and saved, opens without errors: every measure, KPI and detail rows in state 1 (INFO.KPIS,INFO.DETAILROWSDEFINITIONS), the revenue 894300.5 as inexpected.json, andDETAILROWSreturns the 3,900 order lines through the measure's definition and the table default. Desktop's own save of that model equals DashCraft'sOrders.tmdlbyte for byte apart from line ends and the blank last line the source file did not have. - Open: report-level measures of PBIR-Legacy and PBIX layouts (not read yet); KPI settings editors (M10.4).
- Commit:
7143b52(PR #46).
- What:
pbi_model::renames_between(old, new)lists the table, column and measure renames between two models, matched byObjectIdand ordered through placeholders so swaps and a table renamed with its columns come out right.pbi-opscanvas pages remember the model their view state names (PageEntry::names) and rewrite selected points and slicer conditions, saved and current, when the page is next used under a newer model (follow_renames); a click on a render made before the rename maps its point to the current names.Target::updatereads the page and the model from one revision. - Why: M6 open item "canvas state remapping after renames" (DESKTOP-PLAN M6 progress): a
rename silently dropped a cross-filter ("cross-filter not applied") and
canvas.resetrestored stale names. - Numbers: new tests
canvas_selections_follow_renames(column and table rename, undo, redo, click on a stale render),saved_and_current_selections_follow_model_renamesandrenames_between_models_follow_ids_through_swaps; the integration test fails without the fix, and with either the click remap orfollow_renamesturned off. View state is not saved, so there is no Desktop ground-truth comparison. - Commit:
4bd8669(PR #45).
- What:
pbi-tmdl's writer emits Desktop's property order (columns, measures, relationships; a blank line before a measure's or calculation item'sformatStringDefinition), and the source-preserving save keeps each edited file's line ends and blank last line (FileStyle; a new file takes the project's prevailing style, a conversion stays LF).pbi-sessionnumbers calculation items without anordinalby position, as Desktop does (was -1).model.column.createsetsisDataTypeInferredwhen it infers the type. New fixturesreference/groundtruth/gt4/s24/(Desktop-savedbefore/andafter/,edits.json) and the deviation listreference/groundtruth/gt4/deviations.json; testcrates/pbi-ops/tests/save.rs::edits_save_like_power_bi_desktop.gen_acme.pywrites the Desktop order and the Acme example is regenerated (five files). - Why: M6 acceptance 14 (new-object TMDL matches Desktop's under the output contract, ADR-0014), the GAPS TMDL-writer row ("compare the writer with Desktop-saved TMDL").
- Numbers: after four measures, a calculated column and table, a hierarchy and a relationship,
DashCraft writes the same 5 files as Desktop 2.159, equal byte for byte apart from new GUIDs and
2 deviations (inferred data types). GT-6 s24: Desktop opens DashCraft's save with no dialog;
after a refresh its values for the new objects equal DashCraft's (6 totals, 5 regions, 9
channel-region shares) and
'Time Calc'ordinals are 0–3 in both. Mutation checks: an empty deviation list and the old -1 ordinal each fail the test.check_acme.py445/445; ground truth 12/12 suites unchanged; perf P09, P10, P11 45.6, 55.2, 187 ms (ok); lint line numbers in 4 tests and one CLI snapshot moved by one line. - Open: Desktop's form of constructs no edit creates yet (roles, partitions, calculation items, perspectives; M26.1); TMDL with explicit ordinals out of document order still uses the explicit values (Desktop ignores them; Desktop never writes such files).
- Commit:
53bcb1c(PR #44).
- What: the desktop app edits through the registry. The formula bar edits
Name = expressionof measures, calculated columns and calculated tables (rename + expression as onedoc.applyEditsstep); the Properties pane edits description, display folder and format string (PropertyField.svelte); Quick Access Toolbar Save, Undo and Redo name the step fromdoc.history; Ctrl/⌘+S, Ctrl/⌘+Shift+S, Ctrl/⌘+Z, Ctrl/⌘+Y; a*marker in the title; File → Save and Save as; an Unsaved changes question on close, window close and open (lib/editing.ts,App.svelte,app/src-tauri).doc.applyEditsgains an optionallabel(≤ 200 characters) and awarningsresult, so a measure kept with DAX that does not parse is reported (a warning toast) instead of silently accepted. New scripts inscripts/app-checks/drive the built app over the WebView2 DevTools protocol (smoke and A1–A5 accessibility, with the IBM Equal Access checker and the UI Automation tree). - Why: M6.8 (DESKTOP-PLAN), the GAPS §10 Save, Undo and Modeling rows.
- Numbers: 19 Node tests (
app/tests/editing.test.ts), app testedits_save_and_close_through_the_registry, e2e assertions for the label and the warnings; smoke 23/23, accessibility 17/17 (A1–A5 pass; lowest contrast 5.98:1 text, 6.19:1 icons and input borders; 2 px focus rings), three contrast and focus failures fixed (accessibility/m6-editing.md). GAPS §10: 2.0. - Open: A6 (screen readers) not run; GT-4 (a Desktop save comparison of an app edit) not run; macOS Cmd+Q is not intercepted (Tauri); Ctrl+S saves without an uncommitted field draft.
- What:
pbi-modelgainsPage::page_rect,parent_groupandis_group_relative(PageRect; groups nested up to 32 levels) andplacement_of, which places a visual and, for a group, its members: children stored relative to the group keep their offsets on a move and scale on a resize in scale mode; children stored in page units are moved or scaled with it. The newMoveVisualcommand is evaluated when applied, so a move and a resize of the same visual in onedoc.applyEditscompose; its inverse restores every old position.pbi-renderresolves positions throughpage_rect.report.visual.move/resizeand thesetVisualPositionedit use it; results gainmembers. Tests: four group tests incrates/pbi-model/src/report.rs,move_visual_takes_a_groups_members_along_and_undoes_exactlyandbatched_moves_compose(command/tests.rs),visual_groups_move_and_resize_with_their_members(crates/pbi-ops/tests/save.rs: move, resize, batch, save of three files, reopen, render, undo). - Why: the last open part of M6.5 (moving visual groups; DESKTOP-PLAN).
- Numbers: GT-6 s23: Desktop and DashCraft save the same positions for a group resize (1232 → 616 wide) and move (x 24 → 100) in 5 of 5 files; Desktop shows DashCraft's output at the expected page rectangles within 1 px. Render snapshots unchanged. M6.5 ticked.
- Open: a child stored in page units is told apart from a relative one by whether it lies inside the group, as the renderer did before; data column delete and hierarchy level edits come with the editors (M10).
- What:
pbi-sessiongainsSession::revision_snapshot(RevisionSnapshot: revision, document, session model and query snapshot under one lock). Edits, undo and redo build the "View as" engine for the edited engine and model before publishing and install it in the same write lock as the model and revision.pbi-render'sQueryEnv::from_revision; the canvas (canvas.*) andrender.pagetake the report, the page and the data from one capture, and canvas results gaindocumentRevision. Tests:queries_return_the_revision_they_started_at(queries polled once to capture their revision, edits committed while they are pending; values from the edited column and measure prove which revision was read; with and without "View as") andconcurrent_queries_never_mix_revisions(three reader tasks against 60 seeded edit, undo and redo steps: no value, document, model or engine snapshot of two revisions) incrates/pbi-session/tests/robustness.rs;canvas_renders_carry_their_revision_under_view_asincrates/pbi-ops/tests/security.rs. - Why: M6 acceptance 8 and the last open part of M6.2 (DESKTOP-PLAN).
- Numbers: the threaded test failed on every run before the fix (East view, revision 1: engine rows of revision 0); it passes on every run after it. The new session tests take about 10 s in debug. M6.2 ticked.
- Open: derived-column changes (not revisioned) still rebuild the "View as" engine after publishing.
- What:
crates/pbi-ops/examples/perf_ops.rsruns three newperf/budgets.tomlscenarios throughRegistry::execute, the path the app and agents take: P09edit-measure-requery(model.measure.updateof Acme'sTotal Sales, alternating text so every step commits, thencanvas.renderof the Executive Summary page), P10save-pbip-acme(one edit, thendoc.saveinto a copy of the project undertarget/tmp/) and P11refresh-acme-end-to-end(doc.open,data.refresh,canvas.renderof the first page, one process per sample). - Why: M6 acceptance 12 (DESKTOP-PLAN); GAPS §8 had no end-to-end refresh scenario.
- Numbers: full
cargo xtask perfon a 12-core x86-64 Windows desktop (no baseline entry, so no regression check there): P09 43.6 ms (target 50; edit 13 ms, re-render 32 ms), P10 55 ms (target 100; one file written), P11 184 ms (target 1000; open 42 ms, refresh of 11 tables 91 ms, first page 30 ms). No code outside the new example changed, so P01–P08 cannot regress; on this machine they are all within target except P05 (365 ms against 250; 149 ms on the baseline machine). The CI runner's quick run: P09 53 ms (over its 50 ms target, within the 150 ms maximum), P10 33 ms, P11 209 ms. GAPS §8 4.9 → 4.7 (three new rows, the end-to-end refresh gap closed). - Open: record P09–P11 on the baseline machine; app open (P22) and webview canvas latency (P21) remain.
-
What:
pbi-pbirtypesreportExtensions.json(entities and measures, unknown keys kept); the report AST gainsReport::measures(ReportMeasure,MeasureReference). Renames move the measures of a renamed table, rewrite their DAX at token level and theirreferences;model.dependenciesand deletes list them (report-level measure 'T'[Name] of report 'R'); a rename onto one of their names is refused (also in the model command).doc.savepatches only the changed strings ofreportExtensions.json, and the linter reads them from the AST. A report field whose name contains parentheses (Orders.Sales (Scaled)) was treated as a function call, so a table rename left it behind (LINT003); only a name before(makes a call now. -
Why: M6.7 (DESKTOP-PLAN), now ticked. GAPS
reportExtensions.jsonrow (1 → 2, File formats 3.1 → 3.2) and "Editing commands" row. -
Numbers: new tests
report_extensions_are_report_measures(pbir round-trip),renames_follow_report_level_measures_whose_names_are_taken(model),renames_rewrite_report_level_measuresandreport_level_measures_are_dependents(session),renames_follow_into_report_level_measures(core save),renames_rewrite_report_level_measures_and_save_them(ops save), linter and queryRef cases.GT-6 s22 (Desktop 2.159): three report-level measures on a card of the Desktop copy of Acme's Stores report, then DashCraft renamed a measure, a column and the table they use and saved. Desktop loaded the renamed report without an error; its own card query (read from
DISCOVER_SESSIONSduring a refresh) used the rewritten DAX and equals the one before the renames once names are mapped; the card values with the page filters are equal before and after, and so are the four unfiltered values. Negative control: adataTypeoutside the schema (Int64) makes Desktop refuse the report, so it validates the file at load. -
Open: report-level measures are not evaluated (M9.9) and not read from PBIR-Legacy or PBIX layouts (
modelExtensions); a report-level measure cannot itself be renamed yet.
-
What:
model.object.renametakesexpressionand renames an M query, parameter or function.pbi-modelgainsRenameExpression: Entity partitions that read the expression and thePBI_QueryOrderannotation follow (newSnapshot::ModelAnnotations), and query names are unique among expressions and M tables, ignoring case. A table rename does the same when the table is an M query.pbi-mgainsrefs(free_names,rename_query): a scope-aware walk rewrites free identifiers andSection!membernames by span, quoting as#"…"when needed; the M lint now uses it.pbi-sessionrewrites the M of table partitions and shared expressions in the same undoable edit and reportsmRewrites. A name the M cannot follow is refused: a step, parameter or field in scope where the old name is used, or a library function. M that does not parse is left as it is, with a warning. -
Why: M6.7 (DESKTOP-PLAN). GAPS "Editing commands" row ("M-aware rename").
-
Numbers: new tests:
e2equery_renames_rewrite_m_and_keep_the_expected_values;saverenamed_queries_save_and_reopen(exact TMDL diff, reopen and refresh, undo restores the bytes);- session units
query_renames_rewrite_m_referencesandquery_renames_the_m_cannot_follow_are_refused; - model units
rename_expression_updates_the_query_order_and_undoes_exactlyandqueries_share_one_namespace; - three
pbi-mrefsunits; - expression renames and M-hostile names in the property test.
GT-6 s21 (Desktop 2.159): DashCraft renamed five queries and parameters of the Desktop copy of Acme (15 references in seven tables and one expression). Desktop opened and refreshed the saved project,
INFO.EXPRESSIONSandINFO.PARTITIONSshow the new names and the rewritten M, and all 643 recorded cases equal the committed recordings. The same renames on the example refresh in DashCraft to the expected values. -
Open: report-level measures (
reportExtensions.json) are not renamed or rewritten, so M6.7 stays unticked. Descriptions that mention the old name are left unchanged.
- What:
model.table.updateand theupdateTableedit operation (pbi-ops): a calculated table's expression, or any table's description and visibility. The new expression's columns are inferred over the loaded data (Session::infer_changed_table_columns) and merged at apply time (UpdateTable, so earlier edits in adoc.applyEditsgroup are kept): columns with the same source column, else name, keep their ids and properties; new ones are added like a created table's; the rest are removed throughpbi-model's newSetTableDefinition(exact inverse). Self-references are circular now:pbi_dax::refers_to_table(new) and the refresh plan keeps a column's or table's edge to itself. - Why: completes M6.4 (DESKTOP-PLAN); GAPS "Editing commands" row ("calculated table expression edits").
- Numbers: registry 72 → 73 commands. New tests:
e2ecalculated_table_update_through_the_registry,saveupdated_table_saves_and_reopens, model unittable_definitions_change_columns_with_exact_inverses, plan unitobjects_naming_themselves_are_circular,refers_to_tableasserts inpbi-daxeval, a self-referencing column refusal and anupdateTableproperty case. GT-6 s20 (Desktop 2.159): two column updates and one table update; values recomputed in the session equal Desktop's after its refresh; 38 recorded cases changed and all 643 match. - Open: changes to calculation items are not tracked; page queries still run again after any model edit.
- Commit:
5193c24(PR #37).
- What:
pbi-session::recalc(new): after every edit, undo and redo the session compares the old and new model and recomputes, in the same publication and in dependency order, the calculated tables and columns the change reaches (created or changed expressions and types, users of a measure whose expression changed, readers of other tables when relationships change, references that resolve differently after a create or delete, then everything downstream and the derived columns). A failure of the edited object refuses the edit; any other failure drops the stale values (Engine::remove_column,Engine::unload_table, new) and reports the error.pbi-model:SetColumnProperties.pbi-ops:model.column.updateand theupdateColumnedit operation; edit outputs carryrecalculated.created.rslost its own compute path torecalc.rs. - Why: M6.4 and DESKTOP-PLAN acceptance criterion 3 (a measure edit is visible without a refresh); GAPS "Model editing" row.
- Numbers: registry 71 → 72 commands. 4 new tests (
e2eedits_recalculate_dependants_without_a_refresh,saveupdated_columns_save_and_reopen, enginestale_columns_and_tables_can_be_dropped, model unitset_column_properties_patches_calculated_columns_only) and amodel.column.updatecase in the property generator. On Acme a relationship change recomputes 7 calculated objects; a measure edit recomputes only the columns that use it, andmeasures.valuesafter it emits no M progress event. - Commit:
3b6a017(PR #36). - Open:
model.table.update(calculated table expression edits) completes M6.4; changes to calculation items are not tracked; page queries still run again after any model edit.
- What:
dashcraft detect,inspectandlintrundoc.detect,doc.open+doc.inspectanddoc.lintthrough a small registry (crates/dashcraft-cli/src/ops.rs, current-thread runtime) and only print the result; the text writers deserialize the command outputs.dashcraft run --savesaves the--docproject after a successful command or batch.pbi-ops:open_errornames a missing input once,doc.lintfindings carryobject(the object id), the output types deriveDeserialize.pbi-core: the PBIP fingerprint scan checks its caps from the directory listing before reading and stamps files on up to 8 threads. Paths that are not valid Unicode are now refused by these subcommands (parameters are JSON). - Why: M6.10, the ADR-0007 migration plan; GAPS §9 "CLI over the registry" 3.2 → 3.4.
- Numbers: outputs and exit codes byte-identical before and after on 374 runs (17 inputs,
from Acme in five shapes to broken, junk and missing files, × 22 flag sets). Release, median
of 21: Acme
inspect45 → 58 ms,lint45 → 58 ms,detect13 → 15 ms; Regional Salesinspect63 → 78 ms. The extra time isdoc.openitself (session document clone 1–5 ms, project fingerprint, runtime); the scan went 8.8 → 5.8 ms on Acme, which also speeds up the save conflict check. 4 new tests (2e2e, 1errorunit, 1 CLIrun --save). - Open:
refresh,measures,export,renderandconvertas wrappers; sharing the opened document (Arc) to drop the clone inSession::from_opened.
- What:
crates/pbi-ops/tests/property.rs: every catalog command called throughRegistry::executewith its examples, with parameters derived from its JSON Schema and with 40 random mutations each (nointernalerror, no hang); seeded random edit, undo and redo sequences on Acme (refused and no-op steps change nothing,undoback to a document equal to the original) and on loaded data (save as PBIP, reopen with the same shape, undo all, same measure values).DASHCRAFT_PROPERTY_STEPS/DASHCRAFT_PROPERTY_SEEDset length and seed; a nightlypropertyjob infuzz.ymlruns 10,000 steps with the run number as seed (docs/ci.md). Fix found by it:pbi-coresave refused a report whose field was renamed and then deleted (net_renamesonly followed surviving objects);deleted_renamesnow infers those renames from the report fields, chains and swaps included, andcheck_reportsstill verifies the result. GAPS §9 2.9 → 3.2, §12 3.1 → 3.3. - Why: M6.11 and M6 acceptance 10; GAPS §9 and §12 "parameter fuzzing".
- Numbers: parameter test 8,688 calls over 71 commands; random edits 10,000 steps (5,118
committed, 182 no-ops, 4,700 refused) in 85.7 s release, 231.5 s debug; loaded data 1,000
steps per seed, seeds 3 to 7 all green in 10–14 s release (debug default 250 steps, about 9 s).
2 new save tests in
pbi-core(unit and integration).
- What:
crates/pbi-ops/tests/mcp.rs::agents_edit_and_save_only_inside_write_roots: an MCP server limited to--allow edit --allow workspacelists the edit, undo and save tools (notrender_page); an agent edits a project under a read root and one under a write root, saving the first fails withpathDenied(bytes unchanged, still dirty) and the second writes onlytables/Sales.tmdl.docs/MCP.mdgains an Editing section (theedittools) and thedoc_saveAswrite-root rule; DESKTOP-PLAN M6.9 ticked. - Why: M6.9 and M6 acceptance 11; the commands were already agent-safe in the
editcategory (ADR-0012), the end-to-end confinement through MCP was untested. - Numbers: 1 new test;
pbi-opsMCP tests 10 → 11. No code change.
- What:
pbi-modelgetsCreateTable(calculated tables only: one calculated partition, no measures or hierarchies, a free name, distinct valid column names of the calculated kinds; fresh ids for the table, its columns and partition; the inverse isDeleteTable, so redo keeps the ids).pbi-sessioninfers the columns from the expression's result (Session::infer_table_columns: types from the values, else from the source column) and computes a created table in the edit's publication when the data is loaded (compute_created_tables, recorded as a calculated refresh; restored tables keep their data and record).pbi-opsaddsmodel.table.createand thecreateTableedit: randomlineageTags,isNameInferred,isDataTypeInferred,sourceColumnfrom the result as Desktop names it (Stores[Region],Web Sessions[Device]unquoted,[Pages]), sum for numeric columns, a calculated partition named after the table. - Why: M6.5 core editing commands: calculated table create (a "Still open" item).
- Numbers: 3 new tests (
pbi-modelcalculated_tables_are_created_with_fresh_ids_and_deleted_by_undo;e2e.rs::calculated_table_create_through_the_registry: typed from the source columns before a refresh and computed by it, anADDCOLUMNStable over'Web Sessions'typed from its values and computed at once, a calculated column on a created table, eight refusals, undo/redo, a group;save.rs::created_table_saves_and_reopens: the exact new table file,ref tableappended tomodel.tmdl, reopen and refresh, undo saves the original project). Registry 70 → 71 commands. GT-6 with Desktop 2.159 (s19:Regions,'Device Pages','Store Places'): the first run wrote'Web Sessions'[Device]quoted and Desktop replaced that column (the one metadata difference, caught by the ground-truth test); with Desktop's unquoted form it keeps every column as written, its rows equal DashCraft's, and DashCraft matches all 643 cases on the edited model.
- What:
pbi-modelgetsCreateHierarchyandDeleteHierarchy(exact inverses that keep the hierarchy's and levels' ids; refuses names taken by a column, measure or hierarchy of the table, no levels, duplicate level names, missing or row-number columns and a column used twice).pbi-session::object_dependentslists the report filters and visual fields on a hierarchy's levels.pbi-opsaddsmodel.hierarchy.createandmodel.hierarchy.deleteand thecreateHierarchyanddeleteHierarchyedits: randomlineageTags on the hierarchy and each level, saved in place with levels in order and no ordinals, as Desktop writes them. - Why: M6.5 core editing commands: hierarchy create and delete (a "Still open" item; no data recomputation needed, hierarchies do not change the engine).
- Numbers: 4 new tests (
pbi-modelhierarchies_are_created_and_deleted_with_exact_inverses;pbi-sessionhierarchy_dependents_are_the_report_fields_on_its_levels: the Product Detail matrix onProducts[Product Hierarchy];e2e.rs::hierarchy_create_and_delete_through_the_registry;save.rs::created_and_deleted_hierarchies_save_and_reopen: onlyStores.tmdlwritten, the exact block where Geography was, reopen). Registry 68 → 70 commands. GT-6 with Desktop 2.159 (s18: Geography deleted, three hierarchies created, one on a table without any and one with a calculated-column level): Desktop opens and refreshes the saved project and lists the hierarchies with their levels in order on the right columns; its 643 answers equal the committed recordings and DashCraft matches all of them.
- What:
pbi-modelgetsCreateColumn(calculated columns only; refuses calculation groups, invalid names and names taken by a column or measure of the table; inverseDeleteColumn).pbi-sessioncomputes a created column at once over the loaded data in the same publication as the edit (created.rs; redo re-attaches the kept data instead, a table without rows gets it at the next refresh) and infers a new column's data type from its values (Session::infer_column_type).pbi-opsaddsmodel.column.createand thecreateColumnedit: data type inferred unlessdataTypeis given, Desktop's defaults (randomlineageTag, sum for numeric columns,SummarizationSetByannotation). - Why: M6.5 core editing commands: column create (the next "Still open" item after deletes).
- Numbers: 3 new tests (
pbi-modelcreate_column_round_trips_and_checks;e2e.rs::calculated_column_create_through_the_registry: typed create before a refresh and the refresh computes it, inferredstringandint64, 8 refusals, a blank column with a given type, undo/redo, a group of two dependent columns and a measure, refresh after the group;save.rs::created_column_saves_and_reopens: onlyOrders.tmdlwritten, the exact block before the partition, reopen, undo saves the original project; a document opened withautoRefreshloads its data before inferring). Registry 67 → 68 commands. GT-6 with Desktop 2.159 (s17: three created columns, types inferred on the example, saved on a Desktop copy): Desktop refreshes the project without an error and lists the same types and summarization, and DashCraft's results on the edited example match Desktop's on all 643 recorded cases, including every row of the new columns in theOrdersandCustomerstables. - Still open: calculated table create, data column delete with M editing, hierarchy create and delete; a created column is refused when its DAX fails on a row (Desktop keeps it with an error).
- What:
pbi-modelgetsDeleteColumn(calculated columns only; refuses data, calculated table and row-number columns and columns used by a relationship, hierarchy level or sort-by column) andDeleteTable(cascades the table's relationships and the roles' table permissions on it), both with exact inverses that restore everything in place with the same ids.pbi-enginecan detach a stored table or column and attach it again with its data and cached encodings (Storage::detach/attach,Engine::sync_model_with_edits).pbi-sessiontakes a deleted object's data out of the engine and keeps it by object id (removed.rs), so the object can no longer be queried and undo restores its data without a refresh; refresh results follow;delete_dependentsleaves out the DAX of a deleted table itself.pbi-opsaddsmodel.column.delete,model.table.deleteand thedeleteColumn/deleteTableedits (dryRun, dependents,removed, warnings). - Why: M6.5 core editing commands: column and table delete. Before the fix in the session, a deleted column stayed queryable because the engine kept its stored data.
- Numbers: 8 new tests (3
pbi-modelcommands;pbi-enginedetach/attach;pbi-sessiondelete dependents androbustness.rs::deletes_take_the_data_out_and_undo_puts_it_back;e2e.rs::column_and_table_delete_through_the_registry: refusals, a deleted column fails in DAX and undo gives the same values, a column with its two measures in one group, Stores with its 2 relationships and 2 role filters;save.rs::column_and_table_deletes_save_and_reopen: 5 files written,Stores.tmdldeleted, reopen without them, undo saves the original project byte for byte). Registry 65 → 67 commands. GT-6 with Desktop 2.159 (s16, the same deletes saved on a Desktop copy and on the example): Desktop opens the project with 10 tables, and DashCraft's results on the edited example match Desktop's on all 643 recorded cases, including the 226 measure and 12 RLS cases that now fail in both because Stores is gone. - Still open: table and column create (type inference, recalculation of the new object only), data column delete with M editing, hierarchy create and delete; Desktop's own refusals of a delete (it may allow deleting a column a relationship uses) not checked.
- What:
pbi-modelgetsSetRelationshipProperties(cardinalities, cross-filter and security filter directions, active flag; patches only the given properties, exact unchecked inverse) and shares the "one active path between two tables" check with creation.pbi-opsaddsmodel.relationship.updateand theupdateRelationshipedit; relationship edit results gain the relationship's properties. No session change: any relationship change already rebuilds the engine's relationship graph. - Why: M6.5 core editing commands, the last relationship part; GT-6 had not yet checked a saved relationship edit in Desktop.
- Numbers: 3 new tests (
pbi-modelround trip and refusals;e2e.rs::relationship_update_through_the_registry: Customers one-direction changes a cross-filtered count, activation refused alone and accepted as a swap in one group, which givesShipped Salesthrough the active Ship Date, 4 refusals, undo restores everything;save.rs::relationship_updates_save_and_reopen: onlyrelationships.tmdl, only the changed properties written, reopen equal, undo saves the original bytes). Registry 64 → 65 commands. GT-6 with Desktop 2.159 (reference/groundtruth): delete and recreate (s13) identical on 642 of 643 recorded cases, the last one the same relationship rows in another order; four updates (s14) change 196 of 601 measure cases in Desktop, and DashCraft's results on the edited example match Desktop's on all 643 cases; security filtering in both directions with a one-direction cross filter (s15) is refused by Desktop with the rule DashCraft applies. - Still open: table, column and hierarchy create and delete; a committed edited-model ground truth suite (s14 ran from a scratch reference root).
- What:
pbi-modelgetsCreateRelationshipandDeleteRelationship(exact inverses; a deleted relationship is restored in place with its id; checks for names, columns, one table, duplicate column pairs and a second active path between two tables).pbi-sessionfinds a relationship's dependents (DAX naming both ends inUSERELATIONSHIP/CROSSFILTER; unparsable DAX mentioning both is a warning) and names new relationships with the identifier generator.pbi-opsaddsmodel.relationship.create/delete, thecreateRelationship/deleteRelationshipedits, relationship ids inmodel.relationshipsandmodel.dependencies.pbi-tmdl::write_model_preservingkeeps the text of every unchanged top-level object in an edited file (relationships, expressions, …), checked by a reparse. - Why: M6.5 core editing commands, the relationship part; the save test showed that the
first edit to
relationships.tmdlrewrote every other relationship canonically (Acme's spelled-outtoCardinality: onewas dropped). - Numbers: 6 new tests (3
pbi-modelcommand tests, 1pbi-sessiondependents test,e2e.rs::relationship_create_and_delete_through_the_registry: Store filtering off and on through delete, undo, recreate and a grouped edit, the Ship Date dependent, 9 refusals, a failing group and theENG002warning;save.rs::relationship_edits_save_and_reopen: onlyrelationships.tmdlwritten, GUID name, reopen, undo saves the original bytes; plus apbi-tmdlwriter unit test). Registry 62 → 64 commands. - Still open: relationship update (cardinality, direction, activation), table, column and hierarchy create and delete; a GT-6 Desktop check of a saved relationship edit.
- What:
pbi-opsgetsDocChangedEvent(document, command, revision, dirty flag,ObjectChanges of kind added, changed, renamed or removed, the new path after Save As) and a per-request sink onCtx(with_doc_changed), inherited bycommands.batchsteps. Every committed edit command,doc.undo/doc.redo, a save that clears the dirty flag anddoc.saveAspublish one; no-op, failed and dry-run edits publish none.servesends them asdoc/changednotifications through the response outbox before the response (also for requests without an id);mcpsends them asnotifications/messageat levelinfowithdata.event: "doc/changed"(MCP has no document-change notification, and custom methods break strict clients), subject to the client's log level. - Why: the last open part of M6.3; editors, agents and the app (M6.8) need to know what an
edit changed without polling
doc.history. - Numbers: 2 new tests (
rpc.rs::committed_edits_send_doc_changed_before_the_response: create, no-op, failure, rename, a batch with a failing step, an undo notification, two saves;mcp.rs::committed_edits_are_logged_as_doc_changed);pbi-opstests 78 passed, 0 failed. M6.3 is ticked. - Still open: the app's
ops_executeadapter does not forward the events yet (M6.8).
- What:
pbi-sessiongets an injectableIdentifierGenerator(SessionOptions::identifiers):RandomIdentifiers(version 4 GUIDs throughuuid, already in the tree through DataFusion; now a workspace dependency) by default,SequentialIdentifiersfor tests.Session::new_lineage_tagreturns a tag not in use in the model, or none when the model has no lineage tags at all (no format upgrade).model.measure.createand thecreateMeasureedit ofdoc.applyEditsput it in the new measure before the command is built, so undo, redo, saves and a reopen keep it. - Why: M6.6 remainder and ADR-0014 §5: Desktop gives every object a
lineageTag; DashCraft's new measures had none. - Numbers: 4 new tests (
pbi-sessionunit tests for both generators;pbi-ops/tests/save.rsnew_measures_get_lineage_tags_from_the_injected_generatorandlineage_tags_are_random_and_only_where_the_model_uses_them);pbi-opsandpbi-sessiontests: 165 passed, 0 failed. GT-6 with Desktop 2.159: Desktop reads both generated tags back unchanged (INFO.MEASURES()),acme-measures601/601 andacme-calcgroup-rls26/26 identical to the committed recordings,acme-metadatadiffers only by the two added measures. - Still open: tags for tables, columns, hierarchies and relationships come with their create commands (M6.5).
- What:
pbi-core::save_as_projectwrites the current document (edited_document: the last saved state with the edits, renames checked against the reports) with the full PBIP writer into a new folder (safe_path, atomic writes,PartialSaveon a failure part-way), reads it back and makes that the new save baseline with the session's document, so object ids, undo history and later in-place saves all carry on. TMSL shadow properties are stripped from a PBIT ormodel.bimsource's model (otherwise a no-op save afterwards would rewrite files).pbi-session::Session::save_asandedited_opened;pbi-opsaddsdoc.saveAs(write root, empty folder unlessoverwrite, warnings for data not carried over) and moves the workspace entry to the new.pbip.convert.pbipandconvert.pbitwrite the edited document instead of refusing a dirty one.
- Why: M6.6 (ADR-0013): a PBIX, PBIT or
model.bimcould be edited but not saved. - Still open:
lineageTagfor new objects (ADR-0014), Save As PBIT keeps going throughconvert.pbit(no re-association), object origins keep the old source locations. - Numbers:
- The catalog grows from 61 to 62 core commands.
- New tests:
pbi-core3 (save_as_writes_the_edited_project_and_later_saves_go_there,samples_save_as_pbip_with_an_equal_structureon all 4 committed samples,legacy_layout_report_changes_are_refused),pbi-ops3 (save.rs: the synthetic Mini project and the Revenue Opportunities PBIX;e2e.rs::save_as_project_keeps_the_expected_values), and Save As cases added to the model-folder, path-policy, conversion andSendtests. - Acceptance criteria 5 (structure of every sample after Save As) and the PBIP half of 6
(Acme saved as, refreshed through the blob map: every
expected.jsonvalue) pass. - GT-6 with Desktop 2.159: Acme as a PBIT, edited and saved as a PBIP, opens and refreshes in
Desktop and records identically to the edited PBIP saved in place (643 of 643 cases;
reference/groundtruth/README.md).
- What:
pbi-core::save_in_placecompares the PBIP files written for the last saved state with those for the current document and writes only the files that differ, each through a temporary file and a rename. AProjectFingerprintof every project file (taken at open and after each save) turns files changed on disk intoCoreError::Conflict;overwritesaves anyway. A failure part-way isCoreError::PartialSavewith the written and failed files.- Renames move a table's
.tmdlfile (case-only renames too) and are applied to the report JSON (queryRef,nativeQueryRef, filters, bookmarks) by editing the JSON values, not by re-serializing; visual moves patch only thepositionnumbers. Report changes it cannot write (and any change to a legacyreport.jsonreport) refuse the save. pbi-session::Session::saveruns it off the async runtime and advances the saved revision only when every write succeeded.pbi-opsaddsdoc.save(overwrite, write-root check) and theconflicterror code (JSON-RPC -32008, exit code 1); the app shows it as "Changed on disk".- Two fixes found by the save tests: the source-preserving TMDL writer dropped a single
ref tableline (so a one-table rename could not reachmodel.tmdl), and a column rename left the default aggregation label (Sum of Amount) behind, which LINT003 reported.
- Why: M6.6 (ADR-0013, ADR-0014): edits could not leave the process.
- Still open:
doc.saveAs(PBIP from PBIX, PBIT andmodel.bim; conversions still refuse dirty documents),lineageTaggeneration for new objects, report-level measures (reportExtensions.json) in renames, thePBI_QueryOrderannotation after a table rename, non-English aggregation labels. - Numbers:
- The catalog grows from 60 to 61 core commands.
- New tests:
pbi-core8 integration (tests/save_in_place.rs, on a copy of Acme Outfitters) and 2 unit,pbi-ops3 end-to-end (tests/save.rs) plus apathDeniedcase, one each inpbi-tmdlandpbi-model. - Acceptance criteria 1 (a no-op save of Acme writes nothing), 2 (a measure edit changes only
its line in
Orders.tmdl; undo and save restore the bytes) and the save half of 7 (edit, save, reopen in a second workspace, undo, save the original bytes) pass. - Desktop ground truth unchanged: 2,241 of 2,242 equal, 1 ledger entry.
- Desktop writer check (GT-6, Desktop 2.159,
reference/groundtruth/README.md): a batch that renamesOrders[Line Amount], updates and creates measures, sets a description and moves a visual, then saves, wrote 3 files; Desktop opened the result without a repair, and its recordings match the committed ones on all 601 measure and 26 calculation-group/RLS cases. The 5 differing metadata and table cases differ only by the edits (same 3,900 Orders rows).
- Commits:
a8d0411(feature), plus the GT-6 notes.
- What:
ci.yml(rust,app) andrelease.yml(bundle, CLI archives) run onmacos-15instead ofmacos-14;docs/ci.mdanddocs/packaging.mdfollow. - Why: GitHub retired the macOS 14 runner image on 2026-11-02. Since then the macOS jobs were
cancelled before their first step (
The configuration 'macos-14-arm64-us-default' is not supported), so CI onmainreported "cancelled" from #19 onwards. Binaries keep rustc's default deployment targets (none is pinned), so the minimum macOS version does not change.
- What:
pbi-modelgainsCreateMeasure,DeleteMeasure(its inverse restores the measure in place with its id) andSetMeasureProperties(patches only the given fields). Measure names are checked by one sharedcheck_measure_name. Undo never rewinds the id generator, so ids are never reused.pbi-session::object_dependentslists what refers to a table, column or measure: DAX (through the rename planner in probe mode), relationships, hierarchy levels, sort-by columns, role permissions, and report, page and visual fields and filters.dax_syntax_errorchecks an expression.pbi-opsaddsmodel.measure.create,model.measure.updateandmodel.measure.delete(dryRunlists the dependents only), plus thedoc.applyEditsvariantscreateMeasure,updateMeasureanddeleteMeasure. DAX that does not parse is kept, with a warning.model.dependencies(read-only, agent-safe) lists the dependents of any table, column or measure.
- Why: M6.5 progress: measure create and delete were the first create/delete gap in GAPS.
- Still open: table, column, hierarchy and relationship create and delete;
lineageTagfor new measures (assigned at save, ADR-0014); save; notifications; recalculation. - Numbers:
- The catalog grows from 56 to 60 core commands.
cargo test -p pbi-ops: 68 tests, including 10 end-to-end.pbi-model: 63 library tests.pbi-session: 43 library tests.- Full workspace gate (branch
feat/m6-editing):cargo clippy --all-targets --locked -D warningsclean;cargo test --locked: 1,289 passed, 0 failed, 2 ignored.Session::document()now returns anArcsnapshot, so pbi-render test helpers and theperf_renderexample hold the snapshot instead of borrowing from it. - Desktop ground truth unchanged: 2,242 recorded queries in 11 corpora, 2,241 equal, 1 in the ledger, 0 new. The edit commands themselves are not compared with Desktop yet (that needs save, M6.6).
- The
docs/CLI.mdediting example (create, query, rename dry run, undo, history) runs on the Acme Outfitters example.
- What:
pbi-dax::renamerewrites table, column and measure references at token level and keeps formatting and comments.pbi-enginerenames stored tables and columns without reloading them.pbi-model::Historygains checked edits (CommandError::Rejected).pbi-session::edit(RenameObject,preview_rename) rewrites every DAX location of the model and its derived columns. It prepares the new model and engine, then commits both in one step.- Report-only edits (visual moves) keep the engine, the session model and the canvas cache.
pbi-opsadds four commands:model.object.rename(withdryRun),model.object.setDescription,report.visual.moveandreport.visual.resize. It also adds thedoc.applyEditsvariantsrenameObjectandsetVisualPosition.
- Why: M6.5 and M6.7 progress. Acceptance criterion 4 passes: renaming
Orders[Line Amount]rewrites every DAX reference, and all values ofexpected.jsonstill hold before and after a refresh. - Still open:
- M references are warned about, not rewritten.
- KPI and detail-rows expressions and report-level measures are not rewritten.
- Measure edits do not recompute dependent columns.
- Visual groups cannot be moved.
- There is no save or writer sync yet.
- Numbers:
- The catalog grows from 52 to 56 core commands.
cargo test -p pbi-ops: 67 tests, including 9 end-to-end.pbi-session: 41 library tests and 12 robustness tests.
- What:
pbi-sessionnow publishes command, undo and redo changes into its opened document, engine model and session model while preserving active derived columns;pbi-opsexposesmodel.setMeasureExpression, atomic groupeddoc.applyEditsand document history commands. Measure inspection returns stable object IDs, and the generated command catalog is current. DAX query, single-measure and all-measures outputs include the revision captured alongside their engine snapshot and model. Dirty documents require explicit discard to close, and conversion commands refuse unsaved edits while their writer sources remain unsynchronized. - Why: Establishes the first M6.2/M6.3 runtime path and the first M6.5 editing command. The writer-source revision, remaining edit commands, save path, app UI and change notifications are still open.
- Numbers:
cargo test -p pbi-session(79 tests),cargo test -p pbi-ops(65 tests); registry integration covers edit, no-op, one-step grouped undo/redo and query revision reporting. The catalog now has 52 core commands.
- What:
pbi-model::Historynow applies commands against a staged document copy, so failed grouped edits cannot publish partial changes. Changed edits, undo and redo advance a monotonic revision; no-ops preserve redo and returnchanged: false; dirty state follows the current content identity. Added status-bearing operation results. - Why: First runtime increment toward M6.2–M6.3, following the accepted revision and transaction contract in ADR-0012. Registry ownership, a unified session/writer revision and the rest of M6 remain open.
- Numbers:
cargo test -p pbi-model(58 tests) and crate clippy pass.
- What: Accepted ADR-0012 through ADR-0015 for revisioned document state, save conflicts and recovery, the serialization contract and identifiers, and accessibility verification. Corrected the Desktop plan's provisional ADR numbering so it no longer collides with accepted ADR-0010 (DashCraft naming) and ADR-0011 (Desktop ground truth).
- Why: M6 is the next Roadmap milestone and addresses the 0-scored GAPS rows for registry editing and app editing; M6.1 must settle the state, save and verification contracts before implementation.
- Numbers: Four decision records.
- What:
pbi-modelColumn::group_by_columns()readsrelatedColumnDetails(TMDLgroupByColumn, TOM JSONgroupByColumns);pbi-vertipaqfills it from theRelatedColumnDetails/GroupByColumnmetadata tables; the TMDL and TMSL writers convert between the two shapes;pbi-daxraises Desktop's "part of composite key" error when such a column is aggregated alone (and the storage-engine fast path falls back to that error). - Why: The last fixable deviation-ledger entry (
samples-corporate-spendcolumn/toggle-for-*). - Numbers:
samples-corporate-spend79/79 equal to Desktop without a ledger entry; ledger 2 → 1. The remaining entry (formatmeasure/sales-scaled, by design) is the 15th digit of a double sum: adding Orders[Line Amount] in Desktop's own storage row order reproduces its …003 exactly, the CSV order gives …4999999986 and DashCraft's per-dictionary-value sum …001, so matching would mean reproducing VertiPaq's row-reordering heuristic.
- What:
pbi-daxgains per-iterationALLSELECTEDshadow contexts (context::Shadow, resolved lazily;SUMMARIZECOLUMNSrows andEvalContext::with_allselectedset fixed ones), the table form ofALLSELECTEDand the implied relation of the window functions keep only the shadow's filters on their scope,KEEPFILTERSon an iterator's table (context transition intersects), and Desktop's errors forKEEPFILTERS/IGNOREoutside their valid positions and for a many-to-one-side-onlyCROSSFILTER. 30 newfunctions.rscases, recorded in Desktop. - Why: The 4 non-trivial entries of the deviation ledger (1 bug, 3 lenient) and the GAPS DAX
row "
ALLSELECTEDshadow contexts". - Numbers:
dax-functions522 → 552 cases, all equal to Desktop; ledger 6 → 2 entries (left: float summation order in oneFORMATcase, by design; the field-parameter composite key of one MIT sample). GAPS DAX 3.8 → 3.9.
- What: A one-to-one oracle for computed values.
scripts/groundtruth/records DAX query corpora (gen_corpus.py) against Power BI Desktop 2.159's local engine over ADOMD.NET (Record-GroundTruth.ps1, black-box);reference/groundtruth/commits corpora, recordings, the deviation ledger and the generateddax-labfixture (gen_dax_lab.py, the models offunctions.rs);crates/pbi-session/tests/groundtruth.rscompares value by value;cargo xtask groundtruth [--check]reports status. Writer check (GT-6): DashCraft's PBIP and PBIT opened in Desktop, re-recorded and compared (compare_recordings.py). New lint ruleLINT018; MList.Datesand siblings. - Why: Every test so far encoded our own reading of Power BI; ROADMAP
m4-windows-groundtruth(GT-2, GT-6), DESKTOP-PLAN M13.5, the GAPS "differential testing" row (score 0). Done before new features, at the owner's request. - Numbers: 11 suites, 2,212 cases (601 Acme measures, 747
FORMAT, 522 DAX function cases, 286 on three MIT samples, …), all equal or ledgered: 6 ledger entries (1 bug: the impliedALLSELECTEDofOFFSET/WINDOW; 4 lenient; 1 float summation order), 29 volatile cases. 22 findings: 9 DashCraft bug classes fixed (BLANK logic,FORMATrules,MEDIANover dates,List.Dates, blank rows of inactive relationships, Text↔Number keys,COUNTBLANK/DISTINCTCOUNTand the blank row, text case variants, out-of-rangeFORMATdates), 2 PBIT writer bugs fixed (QueriesSettingswithoutVersion, missing level ordinals: Desktop could not open our PBIT), 2 Acme model errors fixed (static plus dynamic format string, nowLINT018; the reserved nameCatalog), 6 ledger entries, 1 adapter difference (INFO.VIEW.RELATIONSHIPSlists one-to-one relationships twice),TODAY()calculated columns marked volatile, and 1 Desktop behaviour documented (template import resets a custom date format). PBIP written by DashCraft: 643/643 equal in Desktop; PBIT: 642/643. Two Acme render snapshots gain the "(Blank)" member Desktop shows. GAPS DAX 3.3 → 3.8. - Open: Desktop's own visual queries (Performance analyzer export) and golden images need
manual GUI steps (reference/groundtruth/README.md);
the
ALLSELECTEDshadow-context bug; GT-1, GT-4 and GT-5.
- What: Added tested conservative frontend-only job selection, workspace-only compiler caching alongside existing dependency caches, trusted-PR dependency-cache saves, bundled Windows LLD with debug symbols disabled, and nextest with separate doctests. App checks remain on all three platforms; Rust changes still run the complete matrix and perf jobs.
- Why: PR #16 took about 34 minutes versus 11 for its identical merged tree with warmer caches. Windows spent 24m16s compiling/linking tests and about four minutes executing them.
- Numbers: Six change-selection regression tests; existing assertions, ignored-test policy,
performance budgets and golden thresholds are unchanged. CI run
41927081220, attempts 1/2 ond71dcc1, passed all ten jobs both times: workflow 37m28s → 7m02s; Windows Rust 37m14s → 6m46s, test compilation 25m46s → 1m45s. All 1,228 Windows tests and twelve doctests passed; two doctests remain ignored. APT was uncached and varied 10m12s → 23s: slow package downloads remain open. Initial cache migration can still require a full build; these runs demonstrate warm reuse, not a controlled old/new benchmark. Commitsb1c69b0,d71dcc1; details and all-platform timings in CI.
- What: The two synthetic SQLite fixture builders in
pbi-vertipaquse mutable connections for rusqlite 0.41.1'sserializeAPI. RegeneratedTHIRD_PARTY_NOTICES.mdfor rusqlite 0.41.1 and libsqlite3-sys 0.39.1, retaining the other dependency updates. - Why: All three Rust CI jobs failed with E0596 at these helpers after the dependency update. Production readers and existing metadata/VertiPaq assertions are unchanged.
- Numbers: Two binding changes fix the two compiler errors; existing tests exercise both fixture builders. Full cross-platform CI validates the combined head before any merge.
- What: Updated resvg and usvg together from 0.48.1 to 0.49.0 and regenerated
THIRD_PARTY_NOTICES.md, retaining merged PRs #13, #15 and #17. - Why: Upstream clipping and text-layout fixes; the existing bundled-font, offline image resolver, deterministic PNG and snapshot checks stay unchanged.
- Numbers: Two renderer versions updated. The original PR passed all 10 CI jobs; the refreshed combined head is checked before merging. Optional image-level review is deferred; CI has no optional Power BI golden images, so it cannot establish golden SSIM.
- What:
Cargo.lockupdates roxmltree 0.21.1 to 0.21.2, zip 9.0.5 to 9.2.2 and tauri-plugin-dialog 2.8.3 to 2.8.4, including their transitive changes; regeneratedTHIRD_PARTY_NOTICES.md. Based on the refreshed PR #13 head so both CI runs can run concurrently while checking the combined dependency graph. - Why: The XML patch avoids stack overflow on deeply nested elements; the ZIP and dialog updates include upstream maintenance fixes. Existing container limits and tests stay unchanged.
- Numbers: Three direct updates; Arrow/Parquet 59.3.2 and DataFusion 55.2.0 are retained. The original PR passed all 10 CI jobs; the combined head is checked again before merging.
- What:
Cargo.lockupdates the Arrow/Parquet family from 59.3.1 to 59.3.2; regeneratedTHIRD_PARTY_NOTICES.md. Integrated currentmain, retaining the financial-function fixes, dual licensing and non-yanked executor dependency. - Why: Upstream maintenance fixes cover IPC validity buffers, array offsets, buffer handling and Parquet decoding without crossing the Arrow major supported by DataFusion.
- Numbers: 15 crate versions updated; DataFusion stays at 55.2.0. The original PR passed all 10 CI jobs; the refreshed head is checked again before merging.
- What: The session robustness fixture uses
UNSUPPORTED_TEST_FUNCTION()instead of the now-supportedPMT, preserving the typed-error and skipped-dependant assertions.Cargo.lockupdates onlyasync-executor1.14.0 → 1.14.1; regeneratedTHIRD_PARTY_NOTICES.md. - Why: The first approved full CI run exposed the stale fixture and a dependency yanked on November 2. Neither check is weakened or suppressed.
- Numbers: The session test fails before the fixture update; all four
cargo denychecks pass with the patched lockfile. No other dependency version changes.
- Commit:
87cc931. - What:
pbi-daxrounds payment types before validating 0/1 and rejects non-finite or below-onenperinPMT/PV/FV, matching the documented DAX bounds.PMT/PVdiscount positive-rate cash flows rather than overflowing an intermediate growth factor.NPERuses separate logarithms away from a ratio of 1, preserving valid small positive ratios that the earlierln_1p-only fix rounded to zero. - Why: Second review reproduced four failures, including an
NPERregression from6fd1f3b; the DAX reference specifies rounding and period bounds that differ from Excel. - Numbers: Four new regression tests fail before the fixes and pass afterward; they cover rounding boundaries, invalid periods, small growth ratios, long horizons and nonzero future values.
- What:
pbi-daxeval/functions/financial.rs:PMT,PV,FV,NPER(type0/1,rate = 0limits,rate <= -1andtypevalidation).(1 + rate)^nperand the annuity factor go throughln_1p/exp_m1, andNPERthroughln_1pof the ratio's offset from 1, so tiny non-zero rates (1.0 + rate == 1.0) match the zero-rate limits instead of failing or returning 0. Licence:MIT OR Apache-2.0(LICENSE→LICENSE-MIT, newLICENSE-APACHE, workspace and fuzz manifests, NOTICE, README, About page); the app bundles both files underlicenses/(tauri.conf.jsonstill pointed at the removedLICENSE, which broke thedashcraft-appbuild script). - Why: GAPS "Function library breadth" (financial functions missing).
- Numbers: 294 → 298 DAX functions (275 supported, 23 partial);
financial_functionscovers mortgage, savings, annuity due, zero and tiny (±1e-20, 1e-12) rates and invalid arguments; the never-panic sweep includes the four functions. Open:XIRR,XNPVand the other financial functions.
- What:
dashcraft-appDocumentSummary.onOpen(none/embedded/cache/query, computed indocument_views);App.sveltestartsdata.refreshfrom it: PBIX/ABF/Power Pivot embedded data (sourcecache, quiet, no cache banner), PBIP.pbi/cache.abf(unchanged), PBIT refresh from the source with a banner about the saved parameter values. PBIP without a cache,.bim, TMDL folders and remote models stay empty until Refresh. Teston_open_loads_what_desktop_loads(PBIX, PBIT, semantic model with and without a cache). - Why: a PBIX opened empty until Refresh, unlike Desktop, which shows the data saved in it.
- Numbers:
dashcraft-apptests 29 → 30; Revenue Opportunities.pbix loads 8 tables on open. Open: Desktop's "Enter parameters" prompt for templates (no parameter-editing command yet). - CI:
cargo deny check advisoriesfailed on main for RUSTSEC-2026-0391, -0398 and -0403 (zstd 0.13.3 / zstd-safe 7.3.0 via arrow-ipc and parquet 59.3; fixes only in zstd 0.14.3 / zstd-safe 8.2, out of reach under DataFusion 55.2). None is reachable (bulk API only, noseekableorlegacyfeature): ignored indeny.tomlwith reasons, to drop when Arrow accepts zstd 0.14.
- What: ADR-0010 supersedes ADR-0009 §2/§4/§5. Removed the
pbiviewalias binary (src/bin/pbiview.rs, its test, the release smoke test and archive copy) and thePBIVIEW_APP,PBIVIEW_BLOB_MAP,PBIVIEW_CONFIG_DIRandPBIVIEW_AI_API_KEYfallbacks (CLIopen, app blob map and AI settings,pbi-aisettings and key lookup), plus the legacypbiview-app/pbiview.applookup indashcraft open. Renamedcrates/pbiview-cli→crates/dashcraft-cli(dashcraft_cli),pbiview-app→dashcraft-app(dashcraft_app_lib),pbiview-fuzz→dashcraft-fuzz;PBIVIEW_REFERENCE/BLESS/TEST_RECORD/ATTEST→DASHCRAFT_*;pbiview.*export metadata keys and annotations →dashcraft.*; test helpers, temp-folder prefixes and the release heredoc marker. Current docs,NOTICE, AGENTS.md and the Copilot notes updated; CHANGELOG history, this log, ADR-0001 to 0009 and research notes keep the old name. - Why: the owner asked to drop the old name: v0.2.0 is the first public release, so no user depends on the aliases.
- Numbers: 705
pbiviewmentions in 121 files → 0 outside history files.
- What:
PendingOpen::set(app/src-tauri/src/lib.rs) is compiled only on macOS/iOS and in tests, its only callers, sodead_codeno longer failscargo clippy -p pbiview-appon Linux and Windows..github/dependabot.ymlignores arrow/parquet majors (DataFusion 55.2 is on arrow 59; the arrow 60 PR could not build) and TypeScript majors (svelte-check4.7 peers on TS ≤ 6).DirContainersorts its skipped entries by path like its entries: they came inreaddirorder, sodir_symlinks_are_skipped_and_swaps_are_refusedfailed at random on ext4. A root.gitattributes(* text=auto eol=lf; the CRLF fuzz seed and Microsoft's sample licence kept as committed; binary formats marked) gives Windows checkouts LF: the Windows runner checked out CRLF, which failed 13 tests in 8 targets (byte-identical TMDL/TMSL round-trips, theCOMMANDS.md/AI.md/ops.gen.tsfreshness checks, fixture-text edits). - Why:
mainCI was red (App jobs on ubuntu-latest and windows-latest; the symlink test at random on Rust ubuntu-latest; Rust windows-latest from CRLF checkouts), and so was every Dependabot PR.
- What: the project is licensed under MIT (
LICENSE;license = "MIT"in the workspace and fuzz manifests; NOTICE, README, the About page and the installedlicenses/LICENSE); the repository URL ishttps://github.com/Jxck-S/dashcraft; golden rule 17 now says the repository is public and every push is reviewed for internal data. - Why: the owner chose MIT (the *Craft projects use MIT OR Apache-2.0) and publishes the source.
- What:
README.mdrewritten to a short front page (336 → 205 lines): icon, tagline, badges, a hero screenshot, four highlights, a screenshot grid (report interaction, Table, Model and DAX query views), agents, internals, get started, status, a documentation index. Five screenshots of the app on the synthetic Acme Outfitters example indocs/images/(PNG, about 600 KB in all). The detail moved: features, the format and visual matrices and DAX/M coverage to the newdocs/FEATURES.md; build, gates and test-data rules to the newdocs/DEVELOPMENT.md; the security posture to the newdocs/SECURITY.md; releases and the v1 acceptance criteria todocs/ROADMAP.md. The gaps, milestone, performance, CLI and architecture tables were duplicates ofGAPS.md,DESKTOP-PLAN.md,perf.md,CLI.mdandARCHITECTURE.mdand are now links. Links into the old README sections (GAPS.md,VISUALS.md,AGENTS.md) updated. - Why: the README had grown into a reference manual; the owner asked for a shorter front page organized like the PhotoCraft README, with a screenshot of the app.
- What:
.github/workflows/release.yml: a manual run (workflow_dispatch) now releases the version inCargo.tomlor aversionoverride (e.g.0.3.0-rc.1, marked pre-release), creates the tagv<version>on the selected commit and the draft release;dry_runkeeps the old build-only behaviour. New targets on native Arm64 runners: Windows arm64 (NSIS) onwindows-11-arm, Linux arm64 (AppImage, deb, rpm) onubuntu-22.04-arm; rpm for Linux x64; CLI archives and SBOMs for both arm64 targets (bundle and CLI matrices 4 → 6). Newscripts/set-version.shsets the version inCargo.toml,Cargo.lockand the npm manifests (byte-identical when the version is unchanged); the workflow uses it for an override.docs/packaging.md,docs/ci.mdupdated. - Why: the owner asked for installers on the platforms PhotoCraft ships (its shared release workflow builds Windows x64/x86/arm64, Linux x86_64/aarch64 with rpm, Flatpak and more) and for a manual release trigger with a version override for release candidates. Kept: two thin macOS builds instead of a universal one (documented choice). Not added: Windows x86, riscv64, Flatpak, Arch, FreeBSD.
- Numbers:
actionlintclean. Not yet run on GitHub: the first dry run will confirm the Arm64 runners, the arm64 AppImage and the rpm file names.
- What: new DESKTOP-PLAN.md: 26 milestones (M6 to M31; M27 to M30 optional) from the viewer to a full Power BI Desktop equivalent, each with numbered steps, crates and registry commands, acceptance criteria on the Acme Outfitters example and the Microsoft samples, tests, dependencies, blockers and size; a Mermaid dependency graph, a summary table, 18 proposed ADRs (0010 to 0027), cross-cutting workstreams (ground truth, performance, security, accessibility), an output contract for canonical writers and explicit non-goals. ROADMAP "Next" items point at their plan steps. README rewritten for the current state, without emoji, with a milestone summary.
- Why: the owner asked for the full flow to a Power BI Desktop copy as a plan before more implementation.
- Numbers: a first draft (17 milestones) was reviewed (8 high, 8 medium, 2 low findings: one
revisioned document state for edits, queries and saves; the Power Query track no longer waits
for DAX engine parity; file-format verification depends on report authoring; broad milestones
split; measurable coverage against pinned inventories; accessibility criteria in every UI
milestone; sandbox, network and PBIX-writing gates tightened). Docs synced: 47 registry
commands, 349 M library names, 294 DAX functions, perf numbers from
perf/baseline.json. - Open: the plan's open questions for the owner (committing Desktop-produced output from the synthetic example, the Windows ground-truth machine, PBIX writing, optional milestones, network exceptions for update checks and local files, versioning, pilot locale, map data).
- What: fixtures are the synthetic Acme Outfitters example (generator
scripts/examples/gen_acme.py, checkerscripts/examples/check_acme.py) and MIT Microsoft sample reports (larger ones throughscripts/fetch-samples.sh). No golden images are committed:crates/pbi-render/tests/golden.rscompares a page only whenreference/golden/<example>/<report>/<page>.pngexists locally (default SSIM threshold 0.85 per region and page, no exceptions). Rendering regressions are caught byinstarender snapshots of every Acme page (render_snapshots.rs) and the card values ofexpected.jsonon rendered pages; the Microsoft samples render every page with the expected visual counts. Fixes: TMDL ↔ TMSL dynamic format strings (formatStringDefinitionobject form both ways), one-to-one relationships relate unmatched rows to the blank row, the people transform accepts plain name lists,kpiusesTrendLineas the trend axis, matrix rows and columns follow sort-by columns. Perf scenarios P03, P06 and P08 run on the example and samples; the app bundle identifier isio.github.jxck-s.dashcraft;.gitignorerefuses*.pbix/*.pbit/*.abfoutside the committed samples and fuzz seeds. Docs: VISUALS "Render verification", GAPS, README,reference/README.md, AGENTS (rule 11, §7), CHANGELOG. - Why: the repository holds only synthetic and licensed public test data, and the docs must describe the verification that actually runs.
- Numbers:
check_acme.py445/445 checks pass; 39 card values asserted on rendered pages; 8 render snapshots. GAPS: visuals 2.4 → 2.1 (eight rows 4 → 3: no Power BI render to compare with), rendering fidelity 3.4 → 3.2 (4 / 0 / 2; the golden images row is ❌ 0). - Open: export the Acme pages from Power BI Desktop or the service into
reference/golden/acme-outfitters/<report>/<page>.pngto verify fidelity.
- What: tests, docs and examples move to the synthetic Acme Outfitters example
(
reference/examples/acme-outfitters/: PBIP with a TMDL model and three PBIR reports, CSV data,blob-map.json, expected values inEXPECTED.md/expected.json, generated byscripts/examples/gen_acme.py) and MIT-licensed Microsoft sample reports (reference/samples/microsoft/, larger ones throughscripts/fetch-samples.shinto the gitignoredreference/samples/downloads/); docs describe features generically. AGENTS.md gains golden rule 2 (never commit or describe real or internal reports or data) and a new fixture table (§7). - Why: the repository must hold only synthetic and licensed public test data.
- Open: the crate test migrations run in the same wave (formats, engine and session, render and perf, front ends); the P03, P06 and P08 perf baselines need re-recording on the new data.
- What: the last user-facing "pbiview" strings say DashCraft: the unsupported-DAX hint of
refresh and derived-column statuses (one
DAX_UNSUPPORTED_HINTinpbi-session), the derived-column description, the lint rules title, the CLI andpbi-opstemporary-file prefixes (.dashcraft-*.tmp) and worker thread name,CallerKinddocs.canvas.tooltipon a scatter point adds the X and Size values around Y (after Details and Legend). Docs: GAPS re-scored, README visual matrix and features, thepbiview-app → pbi-aiedge in ARCHITECTURE and AGENTS §2 (cargo xtask layers: 15 crates, 50 edges, ok), ROADMAP "Next" follow-ups, the Linux package name decision in packaging.md (dash-craftstays: Tauri 2.12 derives it fromproductNameand has no option for it). - Why: rename follow-up (ADR-0009) and
docs-syncafter the visuals, engine, DAX, AI-in-app and conditional-formatting commits. - Numbers: GAPS averages: DAX 2.8 → 3.3, engine 2.6 → 3.4, visuals 2.3 → 2.4 (28 rows),
registry/MCP/AI 2.6 → 2.7, app UX 1.2 → 1.4. Registry: 47 core commands (all agent-safe, with
security.roles/security.viewAs) plus 9ai.*. New tests: scatter tooltip lines (pbi-opscanvas), the DAX hint text (pbi-session). No snapshot changed. - Open:
docs/VISUALS.mdstill says scatter tooltips lack X and Size (owned by the render wave); doc comments that mentionpbiview run/serveinpbi-ops,pbi-m,pbi-engine,pbi-model,pbi-pbirand the app icon's SVG comment are developer-facing and left.
- What:
pbi_render::conditional: table and matrix background/font colors (2- or 3-color gradients, rules with ranges, percent-of-range and blanks, field values), data bars, built-in icons as vector shapes, values vs totals; conditionaldataPoint.fillfor bar, column, pie, donut, treemap, scatter and funnel without a legend field. Rule inputs outside the visual are queried as hidden fields; unsupported variants render plain with a warning. Dynamic format strings per cell throughEvalContext::evaluate_measure_format_strings(one batch per measure and result set) in cards, tables, matrices, chart labels and tooltips. - Why: GAPS §5 (conditional formatting was 0) and the calculation-group format strings that visuals still formatted statically.
- Numbers: 11 end-to-end tests (
crates/pbi-render/tests/conditional_format.rs) plus 12 unit tests; golden SSIM unchanged; P02 and P07 flat.
- A network outage stopped the running agents mid-wave. They were restarted from the tree and this log; nothing on disk was lost. Two agents that had not written anything yet started over.
- What: the app installs
pbi_ai::AiHost(ai.jsonin its configuration folder orDASHCRAFT_CONFIG_DIR) and runspbi_ai::catalog(); File → Options → AI (on/off, providers, write-only keychain keys, default provider, sample rows, consents with Revoke); a consent dialog showing the exactai.previewrequest; Explain with AI (Data pane, formula bar, Properties, ribbon) and Suggest a measure (never applied). The typed-client generator moved tocrates/pbi-ai/tests/ops_ts/(coversai.*); debug-onlyDASHCRAFT_AI_MOCK=1demo provider. - Why: ROADMAP
ai-layer(the app UI was the open part); GAPS §9. - Numbers: 8 hostile-input tests for the Markdown renderer (
app/tests/markdown.test.ts).
- What: logarithms, exponentials, trigonometry and hyperbolics,
FACT/COMBIN/PERMUT/GCD/LCM/QUOTIENT, rounding to multiples, deterministicRAND/RANDBETWEEN, bit functions,GEOMEAN(X),MAXA/MINA/AVERAGEA, theNORM/EXPON/POISSON/BETA/CHISQ/T/CONFIDENCEdistributions,YEARFRAC,NETWORKDAYS,IF.EAGER,ERROR,EVALUATEANDLOG,USERCULTURE,ISAFTER/ISONORAFTER; fixes forEDATEandQUARTER(BLANK()). - Why: GAPS §3 "function library breadth" (the missing math/stat functions).
- Numbers: 294 functions (271 supported, 23 partial); distributions within 1.2e-13 relative error of 122 SciPy references; a 31,600-call random-argument sweep with no panic or non-finite result.
- What: typed
CalculationGroup/CalculationItem(lossless TMDL and TMSL) withSELECTEDMEASURE,SELECTEDMEASURENAME,ISSELECTEDMEASURE,SELECTEDMEASUREFORMATSTRING, precedence, selection expressions and dynamic format strings (fast paths fall back when an item could apply); many-to-many as limited relationships (ENG003now informational);Session::set_view_as/set_effective_rolesapply role filters on a restricted engine copy withUSERPRINCIPALNAME/USERNAME/USEROBJECTID/CUSTOMDATA, failing closed. - Why: GAPS §4 rows at 0–1 (calculation groups, M:M, RLS).
- Numbers: new tests:
pbi-tmdlcalc_groups(4),pbi-daxmodel_features(10),pbi-enginem2m_security(5),pbi-sessionsecurity(5). The registry commands and the app dialog for "View as" followed on 2026-10-23.
- What:
scatterChart(Details × Legend points, numeric axes, area-proportional bubbles, labels, first play-axis frame),funnel(conversion-rate labels),gauge(min 0 / max 2 × value defaults, target needle, callout),treemap(squarified, nested details),waterfallChart(sentiment colors, connectors, total, breakdown top N + Other; sorted by category), with hit ids on every mark. - Why: GAPS §5 and the ROADMAP "more visual types" item.
- Numbers: 19 tests in
crates/pbi-render/tests/visuals_more.rs(edge cases, determinism, the per-visual cache); golden SSIM unchanged.
- What: product name DashCraft (ADR-0009, root
NOTICE).pbiview-cliis now a library (run_main) plus two binaries,dashcraftand the aliaspbiview(usage,--versionand messages use the invoked name). The app isDashCraft/dashcraft-appwith identifierio.github.jxck-s.dashcraft.DASHCRAFT_APP/DASHCRAFT_BLOB_MAPwith thePBIVIEW_*names as aliases; MCPserverInfo.nameand_metaprefixdashcraft; Linux MIME types, packaging files, release artifact names and the license-inventory titles renamed.CommandMeta::invokes_other_commands(set oncommands.batch) replaces the MCP special-case list.roxmltree,sha2andtomlmoved to[workspace.dependencies]. Docs synced: v0.2.0 released, golden SSIM results, 336 M names,pbi-ops/pbi-aiand ADR-0007–0009 in the README and crate graphs (the app depends onpbi-ops, not onpbi-render/pbi-engine), ADR-0007 status,COMMANDS.mdlinksMCP.md,inspect_model.rspaths, macOS Finder opens, GAPS re-scored,THIRD_PARTY_NOTICES.mdregenerated (it predated thepbi-aidependencies). - Why: the owner chose a public name without Microsoft's mark;
docs-syncafter the registry, MCP, AI and app waves. - Numbers: JSON outputs, schemas and
inspect --jsonsnapshots unchanged (no snapshot updates); new tests: thepbiviewalias,DASHCRAFT_APPprecedence, blob-map variable precedence, five migration tests, the invokes-others hint test. GAPS: registry/MCP/AI 1.4 → 2.6, performance 4.1 → 4.9, DAX 2.6 → 2.8, engine 2.4 → 2.6. Registry: 45 core commands (all agent-safe) plus 9ai.*(4 agent-safe). - Open: the deb package name becomes
dash-craft(Tauri kebab-cases the product name); NSIS/macOS/Linux installs of pbiview are not replaced; a trademark search before the first public release; user-facing "pbiview" strings left in crates other agents own this wave (see the wave report).
perf/baseline.jsonre-recorded on an idle M4 Pro: all 8 scenariosok. P01 25.6 → 0.68 ms (p95), P02 13 567 → 97 ms, P04 114 → 22 ms, P08 1.61 → 0.50 ms (perf.md).
run,serveandmcpbuild their registry withpbi_ai::catalog()(mcpexposes only the agent-safe AI commands;commands --markdownstays the core catalog);pbiview ai login|logoutstores or deletes a provider key in the OS keychain (no echo,--stdin, never argv).
- What:
AppStateholds theRegistryand oneWorkspace; every domain operation runs throughops_execute→Registry::executewith progress and cancel; typed TS clientapp/src/lib/ops.gen.tsgenerated from the JSON Schemas (staleness test). The app's canvas, grid, refresh and DTO copies are gone; render ordering and legacy report themes moved intopbi_ops::canvas. New commandsreport.filters,text.previewPeople; File → Export writes PBIP/PBIT. - Numbers: about 4,450 lines of app code removed (net, 52 files).
- What: capability contract (
dax.explain,dax.generateimplemented; othersunsupported), OpenAI-compatible / Azure OpenAI / Ollama providers (ureq+ rustls) and a scripted mock, consent per provider endpoint, capability and data class,ai.preview, keys only in the keychain orDASHCRAFT_AI_API_KEY; consent/settings/key commands not agent-safe;cargo xtask layerscontains HTTP/TLS/keychain crates. ADR-0008, docs/AI.md.
- What:
pbi_ops::mcpgenerated from the agent catalog (no per-tool code): tools with input and output schemas and hints, structured content, PNG renders as images, progress, cancellation, logging; protocol 2024-11-05 to 2025-11-25 and stateless 2026-07-28; read/write roots (default read root the current folder),--allow/--deny. Also AGENTS.md, GAPS.md and this dev log.
- What: plain aggregations group the visible fact rows in one pass (bit-identical results);
SUMX/AVERAGEX/MINX/MAXX/COUNTX/COUNTAXcompile simple row expressions over column dictionaries; general path: per-column value indexes forIN, relationship-index propagation; engineGroupIndex,aggregate_groups(additive). Differential tests fast vs general. - Numbers: P02 13.6 s → 0.1 s, P04 114 → 22 ms.
- What:
AGENTS.mdbecomes the canonical guide for people and AI agents (layer map, golden rules, parallel-agent protocol, validation cheat-sheet, picking work, definition of done, naming and trademark policy);.github/copilot-instructions.mdnow points to it. GAPS.md scores 12 areas against Power BI Desktop; this file seeds the history. - Why: many agents work in parallel; the *Craft research (artcraft-infra-review.md, photocraft-review.md) recommends golden rules, a "picking work" order, a dev log and a gaps scorecard.
- Numbers (counted from the code): 210 DAX functions (187 supported, 23 partial); 336 M
library names (268 native functions); 43 registry commands, all agent-safe; 14 fuzz targets;
1 038
#[test]/#[tokio::test]functions (grep) across the workspace and the app. - Open:
cargo xtask layersfails becausepbi-ai(added in this wave) is in no layer;perf/baseline.jsonstill holds the pre-cache P01/P08 numbers; P02 is over itsmax_msin the baseline (an uncommitted DAX fast-path change reports 13.6 s → 0.1 s).
pbi-opsandpbi-aiin the root[workspace.dependencies](pbiview-clinow takespbi-opsfrom there);pbi-aiis an empty stub for the opt-in AI layer;ureq(rustls) andkeyringreserved for it.
- What: 43 typed, JSON-Schema-described commands with a
Workspace, cancellation, progress, caller kinds and aPathPolicysandbox;pbiview commands,pbiview run(incl.--batch),pbiview serve --stdio(JSON-RPC 2.0,$/cancel);docs/COMMANDS.mdgenerated with a staleness test. - Why: one contract for the CLI, RPC, the app and agents (MCP next) instead of per-surface copies.
- Numbers: CLI snapshot output unchanged;
inspect/detectDTOs moved intopbi-ops.
- What: content-hashed per-visual render cache (LRU); grid model and layout reused across scroll steps; Carlito (OFL) bundled as the Calibri substitute.
- Numbers: P01 (50k-row scroll step, p95) 25.6 → 0.75 ms; P08 (report-page scroll step)
1.61 → 0.49 ms; golden page SSIM up, a Calibri textbox back to the standard 0.85 threshold.
perf/baseline.jsonwas not re-recorded.
- What:
cargo xtask perf(P01–P08 inperf/budgets.toml, per-machine baseline, 20 % / 1 ms regression rule) andcargo xtask layers(7-layer crate map, UI toolkit only in the app); CI gates layers, perf is informational. - Numbers (M4 Pro baseline): P02 first render of a 50k-row table 13.6 s (quadratic group +
sum), P01 scroll 25.6 ms, P04
SUMXover 1M rows 114 ms; fixes queued (perf.md). - Added the
xtaskcrate (cargo xtaskalias) and theschemars/base64deps.
- PhotoCraft and the *Craft family, the ArtCraft umbrella and shared infrastructure, office-style and media apps (docs/research/). Inputs to ADR-0007, the perf budgets, the layer check and this guide.
- What: shaping cache keyed by (text, size, family, weight, italic, wrap width); grid layout
memoized by a content fingerprint;
bench_scrollexample. - Numbers: small-table scroll step ~86 ms → ~6 ms (debug build); first render unchanged.
- Formats: VPAX, Power Pivot model and data (MS-XCA Plain LZ77), RDL outline,
.pq/.pqt, dataflows,.pbiviz/.mez/.pqxmetadata (never executed). - Visuals: textbox, shapes, buttons, cards, slicers, table, matrix, pie/donut, bar, column, line, area, combos.
- Power BI Desktop-style shell (read-only); notices (Fluent icons, Selawik).
pbiview renderand golden-image tests: per-region SSIM ≥ 0.85 with documented lower thresholds for font-limited regions; card values asserted on the rendered output.- Interactive canvas: slicers, cross-filter per
visualInteractions, tooltips, scrolling, matrix expand/collapse, navigation buttons, cancellable renders (ADR-0006). - Packaging: app icon, dmg/msi/nsis/AppImage/deb, file associations, release workflow, SBOMs, signing gated on secrets.
- Docs: README, FORMATS, VISUALS, USER-GUIDE, ARCHITECTURE, CLI, ADR-0006.
- macOS Finder opens reach the running app; version 0.2.0, tag
v0.2.0.
pbi-rendermodule skeleton for parallel work; visuals framework; therender_pageexample (output undertarget/tmp).- Theme, layout, text (Selawik), scene → SVG → PNG, visual query engine
(
SUMMARIZECOLUMNS→ DataViews); card values match the expected values. - DAX grows by ~100 functions (
ALLSELECTED, time intelligence, window functions,USERELATIONSHIP/CROSSFILTER, statistics;FUNCTIONS.md); engine relationship overrides; session derived columns; PBIP.pbi/cache.abfdata; CSV formula-injection guard.
- Gate: fmt clean; clippy
-D warningson the whole workspace including the app; 696 tests pass (59 suites); a clean clone without the optional data passes 676 (those tests skip); cargo-deny licences/bans/sources clean; appsvelte-checkand build clean. - App data grid, refresh with progress, measures strip, "Load CSV manually…", people
transform; exports (CSV, Parquet, model JSON/Markdown) and headless
refresh,measures,export(measures --reportapplies a report's filters). - Fuzzing: 14
cargo-fuzztargets; 4 bugs fixed (a drive-letter zip-slip bypass, TMSL UTF-16 detection and key placement, M escape spans). pbi-sessionrefresh pipeline and query API; the Phase 1 acceptance values (row counts, measures under each report's filters) pass.- App explorer wired to
pbi-core; linter (17 rules, including stalequeryRefs); CLIinspect/detect/open/convertwithinstasnapshots. - DAX evaluator (~120 functions, filter/row context, context transition) and the people field transform.
pbi-coresafe containers, detection and readers into oneDocument, secret redaction,save_as_pbip+export_pbit;pbi-vertipaqABF +metadata.sqlitedb+ VertiPaq decoding: every decoded table matches pbixray (hash-verified).- M evaluator, value model, ~200 library functions, offline
BlobResolver; the fixture's CSV-backed partitions load with the expected row counts. - Wave 2: lossless TMDL (byte-identical), TMSL, PBIR (every fixture file written
byte-identical), Arrow storage engine with filter propagation and DataFusion SQL; dev profile
without dependency debuginfo (
target/had reached 18 GB). - Wave 1:
pbi-model(model, report AST, commands with undo/redo), M and DAX parsers, clean-room XPress9 decoder (output SHA-256 matches pbixray), Tauri 2 + Svelte 5 app scaffold, CI (3-OS matrix, cargo-deny, release, fuzz), ADRs 0001–0005.
- Cargo workspace with 12 crates (
pbi-sessionadded to break the dax/engine/refresh cycle), Rust 1.99.1, workspace lints, Arrow 59.2 / DataFusion 55.2;reference/fixture root with optional data gitignored; offlineblob-map.json.