Skip to content

Declarative update actions drop the data write's notice and droppedFields, so a hook's note to the operator and the fields the engine stripped never reach the user #38103

In progress

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① (b) out-of-scope finding from the #37867 card thread (pre-claim report, PR #38076), read on objectstack origin/main 815e882. Source: fleet.
Grading: area:ux · Bug · p2 · reach: every declarative operation: 'update' action whose write hits a hook that sets a notice or a field the engine strips · evidence: code read (no probe yet).
Dedupe: "declarative update notice / droppedFields", "action answer notice" → 0.

维护者速读

Measured (code read, origin/main 815e882)

Ask

  1. The declarative update action answer carries notice and droppedFields when the write returned them, the same way PR fix(runtime): a declarative update action answers the validation warnings its write raised, and the console toast shows them #38076 carries warnings.
  2. The console action runtime shows them: the notice as the hook's text, and the dropped fields named, on the same one toast.
  3. Pins through the real dispatcher, as A declarative update action drops validation warnings: Confirm Order over a framework quota shows only the success toast #37867's, with ablations.

Acceptance

Activity

  1. added
    bug
    priority:p2
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:server · Bug · p2 · pm:queue · size S; rationale: a declarative update action drops the data write's notice and droppedFields, so a hook's note to the operator and the fields the engine stripped never reach the user. Read from code with no probe yet; a sibling of #37867 (dropped validation warnings, p2). p2; measure at claim, and a measured silent field loss raises it to p1. Recorded 2026-11-28T03:13Z.

  3. added
    domain:server
    pm:queue
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Premise corrected: the card's Ask 2 "the same toast" is read as the Console's standing rule, not one merged toast. The data write's notice leads the action's own toast line; its droppedFields go to the host's existing emitWriteWarning ("saved, but some fields did not take effect"), the same second toast a record save and a flow button already raise. No new sentences in core.

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibwKycKW36n75AWgepd
    Account: os-tesla
    Branch: claude/project-thread-b8i1rx
    Worktree: objectstack-issue-38103
    Domain: server
    Area: o3-ux (area:ux p2, a seat card thread)
    Seat: repo:objectstack#3
    Seat rulings on the pre-claim report (/mnt/project-files/card-38103/pre-claim-report-bd5407ec.md, main bd5407e):

    • Premise holds, measured on a real engine (ObjectQL + InMemoryDriver + the real protocol): an update action's patch writing a readonly field plus a beforeUpdate hook calling ctx.notice — the data door answers both notice and droppedFields; the REST action door and MCP run_action answer 200 with neither, and the stored field is null. A declarative update action drops validation warnings: Confirm Order over a framework quota shows only the success toast #37867 (PR fix(runtime): a declarative update action answers the validation warnings its write raised, and the console toast shows them #38076) is merged.
    • Route B as corrected above. DeclarativeUpdateResult gains notice? and droppedFields? (present only when non-empty); ActionRunner reads both; the two hosts accept info and pass droppedFields to one reader extracted from flowLaunch.ts's announceFlowDroppedFields (flow behaviour unchanged).
    • Grade: the card's measured silent field loss is triage's to regrade (its own comment names p1); the seat does not move the label, and the card is built now either way.
    • withheldMentions dropped the same way: Acceptance notes only.
      File surface: the nine files the report lists — packages/runtime/src/action-execution.ts, new packages/runtime/src/action-declarative-update-write-feedback.test.ts (real engine, REST + MCP doors), ui/packages/core/src/actions/ActionRunner.ts + __tests__/ActionRunner.updateOperation.test.ts, ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx, ui/packages/app-shell/src/views/RecordDetailView.tsx + their undoLookupId-11122 tests, ui/packages/app-shell/src/utils/flowLaunch.ts, one .changeset/*.md.
      Stop on breach and explain in the report.
      Container & model: M, mode:thread, model: claude-opus-5-5 (default tier — dispatch-gates.mjs --tier: "no path-derived mandate"), effort: high, reason: the thread session serves this tier
      Writes: the PR only through the relay pr_create; comments, labels and bodies only through the relay write tools; report both numbers.
      Clause-②: yes (widening)
      Metadata-protocol: none
      Responsibility: a user who runs an update action button sees the hook's message and is told which fields did not take effect, instead of a bare success while a field was silently dropped.
      Premise: holds, measured on origin/main bd5407e (probe readings /mnt/project-files/card-38103/probe-readings-bd5407ec.txt)
      Serial constraints cleared: none — 0 open PRs name #38103; re-run overlap-check before the first push
      Readings owed in the report: both doors answering notice and droppedFields on the real engine, the Console toasts (unit + one browser reading on a real console build), one ablation, the flow path unchanged.
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
    os-dev-report

    {
      "issue": 38103,
      "status": "done",
      "branch": "claude/project-thread-b8i1rx",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38304",
      "session": "session_01L9qibwKycKW36n75AWgepd",
      "premise_still_valid": true,
      "summary": "executeDeclarativeUpdateAction now copies the data-plane update answer's notice (ctx.notice) and droppedFields (DroppedFieldsEvent[]) onto DeclarativeUpdateResult beside warnings, through one reader writeAnswerFeedback; each present only when the write produced it. REST POST /actions and MCP run_action both go through it, and the stale roll-up path composes from the same answer. Console, route B per the claim's Premise corrected: ActionRunner reads notice for operation: 'update' only and leads the toast's description with it (notice alone stays success, with warnings one warning toast, success toast off -> an info toast in the hook's words); the stripped fields reach the host through withAnnouncedUpdateDroppedFields (flowLaunch.ts), which raises the record save's existing emitWriteWarning toast with field labels, beside the action's toast. flowLaunch's parse/announce split into one reader the flow path calls unchanged. Both hosts wrap their server-action handler and honour type 'info'. No new sentences or locale entries. Patch changeset for runtime, @object-ui/core, @object-ui/app-shell; Clause-② yes (widening), Metadata-protocol none.",
      "tests": "Premise at bd5407ec on a real engine (probe in project files, not committed): data door answered notice + droppedFields, REST 200 body and MCP result carried each 0 times, stored readonly field null. New pins: action-declarative-update.test.ts top-level describe on real ObjectQL + SqlDriver (better-sqlite3 :memory:) + real protocol, REST and MCP equal to the data door's answer to the same write, stored row shows the strip, control carries neither key: 41 passed. ActionRunner.updateOperation.test.ts new describe (6) 25 passed; flowLaunch.droppedFields-33009.test.ts wrapper describe (5) 13 passed with the flow cases unchanged; useConsoleActionRuntime.undoLookupId-11122 and RecordDetailView.undoLookupId-11122 describes down to sonner pass. Wider: runtime full 655 files / 12447 passed, 25 skipped (before the pins moved to SqlDriver; that file re-run after); ui 303 files / 3374 passed, 8 skipped. Typecheck exit 0: runtime (test layer 27 files / 183 errors held), @object-ui/core, @object-ui/app-shell. Ablations via ablation-replace.mjs, each restore blob == HEAD: runtime ...feedback spread deleted 4 failed; runner notice read emptied 6 failed; wrapper announce removed 3 failed. Real console reading: showcase scratch copy (task progress readonly, completion hook ctx.notice), console:build, Chromium click on Mark Done on the record page: success toast with the notice line plus warning toast 'Saved — but some fields did not take effect' / 'Read-only, so it did not take effect: Progress'; API answer keys droppedFields, id, notice, object, operation, record.",
      "gates": "dispatch-gates --ran at 3ac5fe29 with recorded exit codes: 73 derived, 72 exit 0, 1 NOT MEASURED exit 3 (check-plugin-teardown-shape --self-test: fixture commit outside the shallow clone), 0 unrun. Roster gates under touched dirs exit 0: check:route-ledger-census, check:authz-resolver, check:error-code-casing, check:filter-alias-parity, check:changeset-fixed. A first sweep at 000383d7 found check:driver-memory-census (new memory-driver binding; fixed in 7bb42376 by moving to SqlDriver) and check:query-options-erasure (test surface 236 -> 237 from an `as any` on findOne options; fixed in 3ac5fe29 by typing it). overlap-check VERDICT clean exit 0 against main 73ec085a, 0 PR heads. PR CI at 3ac5fe29 just started.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 GitHub MCP writes (reads only)",
      "api_writes": "3 — fleet-write relay pr_create (POST pulls + assignees leg, read-back 10585 bytes identical); relay pr_request_reviewers os-tesla; this os-dev-report comment via post-stamped.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: inferred (code read only, no producer of a declarative update writing a mention found) · the same executor also drops protocol.updateData's withheldMentions · not filed, noted in PR Acceptance notes"
      ],
      "deviations": [
        "Surface amendment: the runner reads notice only; droppedFields reach the host through withAnnouncedUpdateDroppedFields wrapping its server-action handler, not through a new ToastHandler option, so ToastHandler gains no member and the stripped-fields toast is raised even when the author turned the success toast off or a result dialog replaces it (as a record save's is).",
        "Tenth file: ui/packages/app-shell/src/utils/__tests__/flowLaunch.droppedFields-33009.test.ts (the reader's shared harness) gained the wrapper describe.",
        "The runtime pins went into the shared harness action-declarative-update.test.ts as a top-level describe (AGENTS.md shared-harness rule), not into the new file the pre-claim report named, and run on SqlDriver rather than the frozen memory driver (check:driver-memory-census)."
      ]
    }
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim amendment 1 (file surface) to claim 7237683217, recording what PR #38304 (head 3ac5fe29) touches, per report 7239043783:

    • Added: ui/packages/app-shell/src/utils/__tests__/flowLaunch.droppedFields-33009.test.ts, the existing shared test file for flowLaunch.ts. Its flowLaunch cases pass unchanged.
    • Replaced: the runtime pin sits in the existing packages/runtime/src/action-declarative-update.test.ts instead of a new action-declarative-update-write-feedback.test.ts. This follows the shared-harness rule. It uses SqlDriver, because the driver-memory-census gate freezes the memory driver.
      Also accepted: the runner reads only notice. droppedFields is announced by withAnnouncedUpdateDroppedFields, which wraps the host server-action handler. ToastHandler gains no member, so the dropped-fields notice still shows when an author turns the success toast off, the same as record save.
      Clause-② and Metadata-protocol are unchanged from the claim.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:serverpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions