diff --git a/CHANGELOG.md b/CHANGELOG.md index ff60ea83..4eee7881 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Sections dated before 2026-09-19 predate the cycle and stay as they are. Named m ## Unreleased +- fix(dg2-patterns, detection-gaps, obligation-check): **a DataGrid 2 column re-attributed by `ALTER PAGE … REPLACE` is named as a whole-page re-emit, and the old-shots LOOK FAULT names its remedy** ([#356](https://github.com/MendixMau/mxcli-project-toolkit/issues/356), [#357](https://github.com/MendixMau/mxcli-project-toolkit/issues/357)). #356: the REPLACE form passed `check --references` and failed mxbuild (v0.26.0, Mendix 11.15.0); `learned-dg2-patterns.md` rule 1 now covers replace/re-attribute, plus a detection-gaps row, a preflight gotcha pointer and `BUG-DRAFT-dg2-replace-column-attribute-passes-check` (upstream candidate: `check` should reject it as it rejects the SET form). #357 change 1: after a partial re-take, the "screenshots older than their section's VALID AT" FAULT now says to keep the section and append an addendum with its own `VALID AT:` and PROOF-OF-LOOK lines; `close-the-loop.md` routes re-shot pages there; `test-obligation-valid-at.sh` T5 asserts the text. Per-page staleness (#357 change 2) is not implemented. — joshuamoesa (#356, #357) - process(build): **Stage 5 drafts the ready set in parallel and applies serially.** The runbook dispatch row said "sequential within a module", which serialised drafting even for independent scripts; it now points to `iterative-build-loop.md` → Gate cost, the single statement of the rule. The unit is the build-plan row: every `BUILD` row whose "Depends on" rows are all applied, minus overlapping writers (two rows that replace, alter or drop+create the same document never share a ready set, and no row is drafted while it overlaps a queued unapplied one; `brd-to-build-plan.md` has Produces name every document a row writes), runs at once, its scripts in order, one `mdl-agent` per script. Applies stay one at a time through `bin/exec.sh`, and the ready set is recomputed after each. A queued draft made before a sibling apply landed is re-checked with `mxcli diff --format struct` (preflight STOP rule 23); any removal line (checked against `describe` per BUG-146) or STOP rule 21 target means re-draft, never patch, because a stale restatement of a shared document is exactly rule 21's silent seed-call loss and passes `check --references`. Report `ready set N, drafted N, applied k`; the `mdl-agent` template says a drafter never applies and never depends on an unapplied draft. Field evidence: none yet. — MendixMau - fix(platform-link): **CLI commits now show their changed documents in Studio Pro History.** Studio Pro's History → Model changes pane reads a `ModelChanges` array from the commit's `refs/notes/mx_metadata` note. Trap 6c's hand-written template set it to `[]`, so every mxcli/agent commit showed "Model changes 0" (field project: 270 of 270 notes empty). New `project-bin/mx-metadata-note.py` (stdlib only) computes the array from the commit's changed `.mxunit` files, in Studio Pro's entry shape: Status, UnitID, UnitType, UnitName and Module (walked up the `.mpr` Unit tree). It has `changes` / `write` / `backfill` / `sync ` subcommands. `install-project-hooks.sh` now also installs post-commit and post-rewrite hooks that write the note and never block, and `--check` covers them, so `sync-project.sh` rolls them out to wired projects. Notes are published with `mx-metadata-note.py sync ` after the branch push. Push config is never touched. With mxcli v0.26+ in the project root the hooks call `mxcli git note --write` instead (mendixlabs/mxcli#1337); the Python script is the fallback for older pins, and on 160 field commits both wrote the same 3,594 entries. Trap 6c rewritten. Measured against Studio Pro's own notes, 51 commits in 5 apps: 3387/3389 entries exact on all five fields. Field run on a 357-commit Mendix 11.15.0 app: 158 notes backfilled and pushed, and Studio Pro History lists the documents per revision. Review fixes: an earlier revision added `HEAD` + the notes ref to `remote..push`. It was dropped because any push refspec replaces `push.default`. A branch tracking a differently named upstream got a new same-named branch on Team Server where `simple` refuses, a missing local notes ref failed the whole push, and nobody knows whether Studio Pro's own push reads that config. The installer now only fetches the remote's notes (non-forced). It removes that exact `HEAD` + notes pair if present, and leaves and reports any other entry. `sync` handles a remote with no notes ref (it used to exit 1) and retries a rejected push once after re-merging. A note that already lists changes (Studio Pro's) is never overwritten by `write`/`backfill` without `--force`, and `sync` keeps a colleague's non-empty note over ours. The mxcli probe greps `git note --help` for `--write`. Hooks and docs call the script through `resolve_py`. Fixture `tests/wave2/test-mx-metadata-note.sh` (40 cases, over real captured template units; single- and two-tree layouts, amend, backfill and `--force`, push exit codes identical to a no-hooks clone, leftover-refspec cleanup, sync to an empty remote and its retry, notes fetch at install, a diverged notes merge; green under `init.defaultBranch` master and main). — field project (Mendix 11.15 app), MendixMau - learn(fixture-seeding): **explore the data structure first, choose rows by use case, scan actions for resets before any run.** Two seeding runs on public template apps: seeding raised journey passes 33 -> 58 and 20 -> 51 of the same sets (FAIL 93 -> 68, 163 -> 132; INVALID unchanged), and a "Reset all demodata" journey wiped accounts so 104 of 127 journeys reported `The username or password you entered is incorrect`, identical on empty and seeded databases. Skill gains three questions a seed must answer, a use-case checklist, a destructive-action scan, a generic traps table with symptoms, measured expectations and a denominator checklist; routing trigger now fires on seed/test/demo data and empty pages. Independent review fixes: object ids follow the Mendix bigint pattern with a business-key guard (no uuids), associations are seeded where the page's path stores them, four new traps (enum names, inheritance chain, calculated attributes, view/external entities), and the port-offset and container-label traps moved to `harness-architecture.md`. — MendixMau diff --git a/bin/lib/obligation-check.sh b/bin/lib/obligation-check.sh index af0c17ba..7bc04164 100755 --- a/bin/lib/obligation-check.sh +++ b/bin/lib/obligation-check.sh @@ -405,7 +405,9 @@ _ob_look_proof_broken() { local why="" [ -n "$missing" ] && why="cited screenshots not on disk:$missing" [ -n "$small" ] && why="${why:+$why; }cited screenshots under 10KB (blank/placeholder):$small" - [ -n "$oldshots" ] && why="${why:+$why; }screenshots older than their section's VALID AT (a previous review's shots):$oldshots" + # The remedy is named in the message (#357): after a partial re-take, agents read this FAULT as + # "re-shoot the whole module" or "accept the FAULT", because nothing pointed at the addendum form. + [ -n "$oldshots" ] && why="${why:+$why; }screenshots older than their section's VALID AT (a previous review's shots):$oldshots — partial re-take? keep the old section and its original stamp (restore it if bumped); append an addendum (VALID AT: + PROOF-OF-LOOK for the re-shot pages) — module-review.md stage 5" if [ -n "$claimed" ] && [ "$n_cited" -lt "$claimed" ]; then why="${why:+$why; }$n_cited citation(s) for $claimed reviewed page(s)" fi diff --git a/bug-logs/mxcli-bugs.md b/bug-logs/mxcli-bugs.md index c068c838..f145070a 100644 --- a/bug-logs/mxcli-bugs.md +++ b/bug-logs/mxcli-bugs.md @@ -6950,3 +6950,26 @@ Two related findings from reading the v0.26.0 source (not field-run): matching the project. Recipe and the rule-set comparison to run before any diff: `skills/lint-that-actually-runs.md` → "Linting a copy of the model". `lint-gate.sh`'s collapse guard catches this inside the gate. Nothing catches it when lint is run directly. + +## BUG-DRAFT-dg2-replace-column-attribute-passes-check: `ALTER PAGE … REPLACE` of a DataGrid 2 column with a new `Attribute:` passes `check --references`, then fails mxbuild (2026-10-14) + +**Severity:** Low. No damage: `exec.sh`'s mxbuild gate fails and auto-restores the snapshot. The cost is one wasted exec/mxbuild cycle, and the form is tempting because `check` approves it. +**mxcli version:** v0.26.0. **Mendix version:** 11.15.0, macOS. +**Discovered:** 2026-10-14, an Ollama connector app (existing-app mode): one build row swapped the `Attribute` of an existing DG2 column (raw bytes → a formatted String attribute on the same entity, same module). Reported by joshuamoesa (#356). +**Reproducible:** yes, by the reporter: against a snapshot copy, `mxcli check -p .mpr --references