Skip to content

uiReadonly / uiReadonlyWhen: honour the hand lock on the remaining console surfaces — Gantt drag and in-place edit, timesheet cell write, kanban swimlane drag, the in-app assistant acting for a person, and palette prefill #37448

Done

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Filing gate: ① a declared key not yet enforced on named surfaces (ADR-0049) · Source: fleet (L1 S3 and nit N3 of seat repo:objectstack#5 on PR #37436, comment 7183712080; contract record 7183704697). Follow-up of #36806 phase 1.

Grading: area:data · reach: read on PR #37436's diff — the maintainer's ruling 7180466652 makes uiReadonly / uiReadonlyWhen lock every console ("by hand") surface; phase 1 covers the surfaces the ruling lists, and these still let a person change a locked field · evidence: read.
Suggested-grade: p2 · a declared lock a person can bypass from four surfaces; server-side validations still judge every write.

What

Route each surface through the phase-1 helper (fieldReadOnlyByHand, with the host predicate scope and the read-before-verdict of the lock's operands that PR #37436 adds for grid / kanban / calendar):

  • Gantt drag and in-place edit (ObjectGantt.tsx);
  • the timesheet cell write;
  • kanban swimlane drag (between swimlanes grouped by the locked field);
  • the in-app assistant when it acts for a person (ruling: "by hand" includes it);
  • palettePrefillField, which still reads raw readonly (nit N3).

Acceptance (proposed, for triage)

Related: #36806 (PR #37436), #37402 (object-level lock, duplicate), #37405 (ADR + skill).
Dedupe: searched 'uiReadonly gantt', 'uiReadonly timesheet' — no open card.

Activity

  1. added
    finding
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · domain:ui · Bug · priority:p2 · pm:queue · size M; rationale: a declared field lock (uiReadonly / uiReadonlyWhen) that a person can still bypass from five console surfaces (Gantt, timesheet, kanban swimlane, the assistant acting for a person, palette prefill). Server-side validations still judge each write, so nothing is silently lost: p2, as suggested. Follow-up of #36806 phase 1.

  3. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Carried from #36806 (contract record 7186595753 N5, 2026-11-26T08:51Z): ListView harvests the lock-predicate operands for kanban.groupByField only. When the kanban block names no lane field, the board's detected lane field (the status-field resolver in ui/packages/plugin-list/src/ListView.tsx) gets no operand harvest, so a uiReadonlyWhen on it faults closed on projected rows and refuses every drag. Add the detected lane field to the editedInPlace list beside groupByField, with a pin.

  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Scope addition (area o5-D) · 2026-11-26T11:07Z · from seat re-ACCEPT 7190291304 on PR #37436, item N8

    • N8: validate-field-consumers.ts BEHAVIOUR_SEGMENTS does not list uiReadonlyWhen. Look at whether the field-consumer check should treat it as a behaviour segment the way it treats readonlyWhen. If it should, add it with a pin. If not, say why in the PR.
    • N7 (no action owed, recorded for the reader): the cel-field-ui-readonly-when row in packages/qa/dogfood/test/expression-conformance.ledger.ts names fieldReadOnlyByHand first in its enforcement cell, while the edit form and the grid call resolveFieldRuleState directly. The verdict is the same. Re-word it if this card touches that row anyway.
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-27T07:42Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgWGbDsK1qEW72jibhi
    Account: os-sales
    Branch: claude/project-thread-riww1b
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-data
    File surface: the console surfaces the card lists routed through fieldReadOnlyByHand (ObjectGantt.tsx drag and in-place edit, the timesheet cell write, kanban swimlane drag and the detected lane field's operand harvest in ui/packages/plugin-list/src/ListView.tsx, the in-app assistant acting for a person, palettePrefillField), validate-field-consumers.ts BEHAVIOUR_SEGMENTS (N8), the uiReadonly describe and the describe_object text, one pin per surface.
    Container & model: M, mode:thread, model: default — no path-derived mandate, effort: high (reason: a declared field lock bypassable from five surfaces)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — follow-up of #36806 phase 1
    Thread-read: none
    Premise: holds — PR #37436 (phase 1) merged; the listed surfaces still let a person change a locked field
    Serial constraints cleared: none

    Unclaimed child of closed epic #36806, taken by seat 2 on the maintainer's lane order of 2026-11-27 07:37Z. The PR says Fixes #37448, or Part of #37448 if a surface needs a design choice the card does not settle.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  8. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgWGbDsK1qEW72jibhi
    os-dev-report

    {
      "issue": 37448,
      "status": "rework",
      "branch": "claude/project-thread-riww1b",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37888",
      "session": "session_01L6bhgWGbDsK1qEW72jibhi",
      "premise_still_valid": true,
      "summary": "The hand lock (uiReadonly / uiReadonlyWhen) now holds on the Gantt (drag, resize, progress handle, in-place edit, auto-schedule, conflict reschedule, undo/redo, dependency link), the timesheet cell and create, and the palette's create-as prefill, each through fieldReadOnlyByHand or its static half with the shell's predicate scope; ListView harvests the detected kanban lane field's operands; the swimlane drag (which writes only the column field) is pinned; N8 is answered (uiReadonlyWhen not added to BEHAVIOUR_SEGMENTS, reason and pin in the PR); N7 rewords the ledger row. The in-app assistant acting for a person is NOT covered: its writes run in the AI service, which does not read the hand lock, so the PR says Part of #37448 and the descriptions name it as the one surface not honouring the lock yet. Head 17cf9c93. The model served is the default tier the claim names, at effort high.",
      "tests": "One pin per surface, each ablated with scripts/ablation-replace.mjs and red, then restored (git diff --quiet HEAD): palette 1 red, ListView lane operand 1, Gantt write 2, Gantt link 1, Gantt interactions 1, timesheet cell 2, timesheet create 2, kanban swimlane 1. Suites: UI (plugin-gantt, plugin-timesheet, the ListView and kanban pins, app-shell chrome, core evaluator) 1650 passed / 148 skipped; spec src/data 6893 passed; mcp 1589 passed; lint validate-field-consumers 203 passed; after merging main the kanban and ListView pins re-ran, 12 passed.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands derived 122 commands; all ran under os-verify-lock. 119 exit 0. Three refused on a prerequisite (no verdict): check:skill-examples (exit 3), check:dts-closure and check:dual-build-cjs-loads (declarations not emitted, this container built with OS_SKIP_DTS=1). check-plugin-teardown-shape --self-test exit 3 until its pinned fixture commit was fetched, then exit 0. After the main merge: spec check:generated exit 0 on a fresh spec build, check:liveness exit 0, check-i18n-bundles OK, check-nul-bytes exit 0. Package type-checks not measured locally (missing workspace declarations); the CI type-check lanes judge them. CI check-runs had not reported when this was written; the PR number and head go to the seat thread when they are green.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "2 — reads only: issue_read (the card). No write tool.",
      "api_writes": "2 — both through the fleet-write relay, POST /repos/objectstack-ai/objectstack/dispatches: pr_create (draft, assignee os-sales; read back identical, 9509 bytes), and this comment. Plus git pushes to the claimed branch.",
      "open_questions": [
        {
          "question": "Where should the hand lock be judged for the in-app assistant acting for a person? Its writes run in the AI service (not in this repo), which does not read uiReadonly / uiReadonlyWhen.",
          "options": [
            "A: the AI service judges fieldReadOnlyByHand over the stored record before an assistant write on a person's behalf, as a follow-up card for that service",
            "B: leave the assistant outside the hand lock and say so permanently in the key's description"
          ],
          "recommendation": "A, because the ruling counts the assistant acting for a person as a hand surface; it needs its own card where the assistant's writes run."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: cloud · the in-app assistant surface of this card (writes run in the AI service) · noted, not filed"
      ]
    }

    Generated by Claude Code

  9. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed (part) · 2026-11-27T11:11Z

    PR #37888 merged at 2026-11-27T11:10Z (Part of #37448): the hand lock (uiReadonly) now holds on every console surface that edits a record, calendar quick-create included. One surface stays open, the in-app assistant writing for a person, carried by #37898. This card keeps pm:dispatched until that lands. Follow-ups filed during review: #37898.

  10. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Done · 2026-11-27T21:23Z — answering triage 7228343677 on the seat mailbox.

    PR #37888 (merged 2026-11-27T11:10Z) delivered this card's console surfaces: the hand lock holds on every console surface that edits a record, calendar quick-create included. The one surface left, the in-app assistant writing for a person, is its own card, #37898 (area:ai, pm:queue), and is not tracked here any more. Closing as completed; pm:dispatched is cleared.

  11. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:uifindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions