Skip to content

Resolve open question 14: a backend reads a table behind a data reference at /<attr>/* - #17

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/great-mendel-aiaiwu
Nov 20, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
claude/great-mendel-aiaiwu

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Maintainer decision needed: this resolves open question 14 as alternative (b) — the backend side of the *-node delta becomes a MUST. AGENTS.md leaves resolving open questions to the maintainer; please merge only if (b) is the answer you want.

  • Conformance app REF, both twins (conformance/apps/abap/z2ui5_cl_conf_ref.clas.abap + xml, conformance/apps/cap2ui5/ref.js): two REF TO data tables bound dereferenced — MR_TAB (3 rows, _bind( )) and MR_WIN (6 rows, window_bind_tab( ), window 4, sorted QTY desc); CHECK writes what the backend holds into SUMMARY.
  • Two backend checks (MUST, core), suite now 93 checks:
    • model.reference-delta — {MR_TAB:{"*":{__delta:{1:{…}}}}} changes exactly that cell;
    • window.delta-positions-reference — __delta keys under MR_WIN/* are positions in the sorted window (rows ID 4 and 5, not 1 and 3).
  • Spec: spec/request.md note → MUST with Checked by; spec/windowed-tables.md names the * node; spec/open-questions.md 14 resolved (b).
  • Results: node-runtime 1.149.0 passes both (its main_json_to_attri already applies */__delta — only the 1.149.0 frontend was wrong). cap2UI5 0.6.0 fails both at app start (JS apps can't declare TYPE REF TO data) — pinned in test/lib/expected.mjs and BACKEND_TRAFFIC_APART; the plugin support is cap2UI5/cap2UI5 (t.ref), and with it both pass.
  • Traffic re-recorded; check list regenerated; RESULTS/README/CHANGELOG.

npm test: 91/91 (both reference backends, UI5 SPA in Chromium, agent client, Adaptive Cards, terminal).

After a cap2UI5 plugin release with t.ref: bump conformance/hosts/cap2ui5, drop the two pins and BACKEND_TRAFFIC_APART entries, expect both checks to pass, npm run record.


Generated by Claude Code

…ta reference

A table bound through a data reference is the model node /<attr>/*, and
a backend that looks for its __delta at /<attr> only drops every edit of
it without an error. Until now only the frontend side had a check; the
backend side was an implementation note, because no conformance app
bound a data reference.

- Conformance app REF (Z2UI5_CL_CONF_REF, ABAP + cap2UI5 twin):
  MR_TAB and MR_WIN TYPE REF TO data, bound dereferenced, one with
  _bind( ), one with window_bind_tab( ) in the order QTY descending.
- Backend checks model.reference-delta and
  window.delta-positions-reference (MUST, core): 93 checks.
- spec/request.md: the note became the rule; spec/windowed-tables.md
  Edits names the * node; open question 14 resolved.
- node-runtime 1.149.0 passes both - its backend reads the * node, only
  its frontend sent the edit wrong (fixed in abap2UI5 #3026).
  cap2UI5 0.6.0 cannot declare a field TYPE REF TO data in a JavaScript
  app: the twin's start fails, both checks are pinned for cap2ui5 and
  kept out of the traffic comparison until a plugin with t.ref( )
  (cap2UI5/cap2UI5 5085ddc, unreleased) is in the host. With it the twin
  passes both, byte for byte as the ABAP app (measured, not recorded).
- Suite traffic recorded again from both hosts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YZFmCjdbLvb757NWCFVeA
@oblomov-dev
oblomov-dev merged commit 372e14d into main Nov 20, 2026
3 checks passed
@oblomov-dev
oblomov-dev deleted the claude/great-mendel-aiaiwu branch November 20, 2026 08:50
oblomov-dev pushed a commit that referenced this pull request Nov 21, 2026
Brings main's table behind a data reference (#15, #17), cap2UI5 0.7.0
(#18), the node-runtime host and CI's UI5 frontend on 1.150.0 (#19) and
the Web Components rename (#16) together with the app-driven window, which
abap2UI5 merged to main with 694fb262 (#3032).

- Spec: the window cites abap2UI5 main 694fb262 (app/webapp); main's
  reference rules adapted - a __delta on /<attr>/* of a windowed table
  names plain rows, a whole value there is written. Main's open question
  14 (resolved) kept; the protocol-number question renumbered to 15.
- Apps: the windowed table behind a data reference moved from REF into
  WINDOW (MR_WIN, event WIN), so REF builds on every runtime; checks
  window.delta-rows-reference and window.edit-row-shown-reference (on the
  recorded MR_WIN) replace the position-based ones.
- Released hosts have no app-driven window: node-runtime 1.150.0 leaves
  the app WINDOW out of its build and lint:abap (scripts/lint-abap.mjs),
  cap2UI5 0.7.0 refuses its window_bind_tab( ). Their eight MUST window
  checks and window.request-bounds are pinned with the fix "abap2UI5 main
  694fb262, the next release after 1.150.0" - for node-runtime only when
  the installed runtime lacks cs_window_reason; the UI5 SPA's three
  ui5.window-* checks are pinned for a checkout without the app-driven
  WindowModel.js (CI's af05dce).
- Traffic recorded with node-runtime on a runtime built from 694fb262 and
  its app/webapp, cap2UI5 on 0.7.0; traffic.test reads the pins of the
  recording (RECORDED_FAILURES). npm test is green on the released
  packages (CI) and on the main runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YZFmEAFUJQM8c8aDK1d6U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants