Skip to content

adr: field write locks are two tiers, two forms and two levels (readonly / readonlyWhen vs uiReadonly / uiReadonlyWhen, field over object); the data skill teaches the four spellings #37405

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbcAmwZGHVnPE8xJwr

Filing gate: ③ · Source: maintainer — ruling on #36806 (2026-11-26, decision thread 「裁决 #36806 只读字段命名」): 「按长远模型」, with the instruction that the model is a contract rule and must not live only in field describes. Sub-issue of #36806.
Grade: area:data · Documentation · p2 (takes the parent's grade).
Reader: triage — the fix lands in docs/adr/** and skills/** (governed, Tier H), so the lane is domain:skills, not the parent's domain:spec; the filing seat asks triage to confirm the label. Card thread must start on the contract-review tier.
Blocked-by: none — the ADR can be written beside #36806's PR and should land first or with it.

维护者速读

Asked

  1. A short ADR under docs/adr/ recording the ruling on spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806:
    • two tiers: server lock (readonly, readonlyWhen; readonlyWhen: P\true`is set-once, the RAPreadonly:update/ ODataCore.Immutable shape) and hand lock (uiReadonly, uiReadonlyWhen`: every console surface, writes through API, import, actions and flows keep it, judged by validations);
    • two levels: field and object, a field's own declaration wins over the object's default;
    • what counts as "by hand": forms, inline edit, multi-row grid save, kanban and calendar drag, the highlight chip, duplicating a record, and an in-app assistant acting for a person; what does not: API, import, actions, flows;
    • the admission rule for ui-prefixed keys: only where the console's and the server's answers to the same question legitimately differ; visibility has one tier (server-side is permission masking, a different key) and required-ness has one tier (server), so uiVisibleWhen and uiRequiredWhen are refused by this rule;
    • contradiction handling: uiReadonly beside readonly: true is refused at validate; uiReadonlyWhen beside readonlyWhen is allowed and documented;
    • the server strip stays a strip with the dropped-fields header; a refusal mode is out of scope.
  2. The data skill (skills/**) gains one section, "locking a field: the four spellings and when to use which", with the sales-order status example from hotcrm#2716.

Done when

The ADR is accepted on main; the data skill section is in place and its eval exercises a uiReadonly status field; objectstack validate's refusal text for uiReadonly + readonly points at the ADR.

Governing text

Activity

  1. added
    documentation
    priority:p2
    domain:skills
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:data · domain:skills · Task · priority:p2 · pm:queue · size S; rationale: the maintainer's ruling on #36806 says the two-tier field-lock model is a contract rule and must not live only in field describes. The text lands in docs/adr/** and skills/**, so domain:skills is right. It is a Task, kept at p2 because it lands with #36806 (p2, in flight).

    Confirmed: no blocker, so pm:queue. Route: seat 5 zone o5-D, beside #36806's PR. It is Tier H, so it gets the handoff after ACCEPT and a same-head contract PASS (label-write --handoff).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 10 · 2026-11-28T23:50Z
    Picked from pm:queue on the maintainer's order in this seat's project, verbatim: 「开一个专区,接手 area:data 并发3」 (area declaration 7247668950).
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgTpyo8gQyqf9Tj9mfz
    Account: os-sales
    Branch: claude/project-thread-bqsxpg (from main)
    Domain: domain:skills
    Seat: repo:objectstack#2
    Area: s2-data
    File surface: one new ADR under docs/adr/ and its docs/adr/README.md index row; one section in skills/objectstack-data/ and the eval that exercises a uiReadonly status field; the objectstack validate refusal text for uiReadonly beside readonly: true (pointer to the ADR only, wherever that refusal is raised today) and its test; one changeset if a package changes.
    Container & model: S, mode:thread, model: CONTRACT_REVIEW_TIER (dispatch-gates.mjs --tier: "Model tier — MANDATORY: claude-fable-5-2 (derived from the file surface, not recalled)", docs/adr/** and skills/** clause ①, no one-line exit), effort: high (reason: a new ADR recording a ruling, not an ADR revision; the thread session serves claude-fable-5-2 at effort high)
    Writes: the ADR records the ruling on #36806 as the card's Asked §1 lists it, and nothing beyond it; the skill section teaches the four spellings with the sales-order status example; the validate change is the refusal text's pointer, not a new rule.
    Clause-②: no (no accept set or export changes; governed rules text, so one contract-review-tier review before the queue; Tier H)
    Metadata-protocol: none
    Responsibility: the ADR is on main with the two tiers, two levels, the "by hand" list, the ui-prefix admission rule and the contradiction handling; the data skill section and its eval are in place; the validate refusal points at the ADR.
    Thread-read: 7180942330
    Serial constraints cleared: no open PR of this seat edits these files (seat read); the thread runs scripts/pm/overlap-check.mjs before its first push.

    The PR says Fixes #37405.

  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#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim amendment · 2026-11-28T23:52Z · amends claim 7247702130
    Writes: File surface, measured by the thread on main c610020: docs/adr/0163-*.md and the generated docs/adr/README.md; skills/objectstack-data/rules/validation.md (the new section), skills/objectstack-data/SKILL.md (one routing pointer), skills/objectstack-data/evals/objects-fields-relationships.json (one uiReadonly status-field case), the two cap lines of scripts/check-skills-token-ratchet.mjs; and one message in packages/spec/src/data/field.zod.ts pointing at the ADR, with its pin and a @objectstack/spec patch changeset, in the same PR (the card's Done-when names it). The ratchet follows the standing ruling of 2026-10-27 (6513306068): duplicates are cut in the same file first, and only the measured rest raises a cap. The sentence in validation.md that calls imports system-context writes is corrected in the new section, named in the PR body. Clause-②: no and Metadata-protocol: none stand: the message changes, the accept set does not. Every other line of the claim stands.

  7. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 37405,
      "status": "done",
      "branch": "claude/project-thread-bqsxpg",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38428",
      "session": "session_01L6bhgTpyo8gQyqf9Tj9mfz",
      "premise_still_valid": true,
      "summary": "As claimed (7247702130, amended 7247733027), head 0922ab3a, two commits. docs/adr/0163: the two-tier field write lock as an Accepted record on ruling record 7180466652 and the two object-level rulings on 37402 (7235326611, 7237772411): D1 two tiers, D2 two forms, D3 two levels, D4 by hand, D5 the ui-prefix admission rule, D6 contradictions, D7 the strip stays a strip. Decision carries only quoted ruling text; what main does at c610020e is a separate As built section by symbol anchor; three points the ruling covers and the code does not reach yet are listed with their open carriers (37898, 38202, 38249). README regenerated. skills/objectstack-data/rules/validation.md gains Locking a Field (two-by-two table, one checked sales-order example, five bullets); SKILL.md routes to it; evals case 30 is a uiReadonly status field. One sentence is corrected on the way: the file said an import is a system-context write, it is not. Ratchet: SKILL.md 2239 to 2223 (lowered to measurement); validation.md 3466 to 3862, 1035 bytes of restatement cut first, the remainder raised under ruling record 6513306068, the section ordered by 7180466652. packages/spec: the uiReadonly + readonly refusal now ends with ADR-0163 (D1, D6), pinned. One changeset, spec and skills patch. Premise held: uiReadonly had zero hits under docs/adr and skills on main, and 0163 was unclaimed (no open pull names it).",
      "tests": "packages/spec vitest run src/data/field-ui-readonly.test.ts: Test Files 1 passed (1), Tests 5 passed (5); the refusal case asserts the message ends with ADR-0163 (D1, D6). spec check:skill-examples exit 0, 353 marked examples, the new block among them. Two scratch vitest probes (not committed): ObjectSchema parses the example; validateStackExpressions reports no issue for it (constant predicates included). A third probe read how the schema answers uiVisibleWhen: unrecognized key, the answer suggests visibleWhen. ui check:skill-eval-tokens exit 0 (case 30's two tokens are taught). No ablation: no tested behaviour changed, one string gained a tail. NOT RUN: a model-driven skill-evals round; case 30 has no recorded answer.",
      "gates": "Local at 0922ab3a: dispatch-gates.mjs --ran reconciles 124 derived, 120 run all exit 0, 4 NOT-MEASURED by recorded exit 3, 0 UNRUN. Of the four: check-plugin-teardown-shape.mjs --self-test stays NOT MEASURED (its positive control is pinned to a commit this shallow clone cannot reach); check:doc-formula-expressions, check:dual-build-cjs-loads and check:lean-entry-closure answered exit 3 before their build closures existed and exit 0 when re-run alone after; the record keeps both lines and the tool reads the worse. Outside the derived list: spec check:skill-examples exit 3 before the client-react closure, exit 0 after; ui check:skills-paths exit 0. overlap-check.mjs: VERDICT clean against origin/main 3579cf13 and pull 38192 (shares skills/objectstack-data/SKILL.md). CI at 0922ab3a (pr-state.mjs): 5 success, 10 expected skip, 0 failed, 22 pending when written; not waited for.",
      "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 writes (reads only: issue_read x9, pull_request_read x2; subscribe_pr_activity for 38428)",
      "api_writes": "2 - fleet-write relay pr_create (POST pulls + POST issues/38428/assignees); this os-dev-report comment (POST issues/37405/comments). Plus one git push of the branch.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat - dispatch-gates.mjs --tier prints an effort floor of xhigh for docs/adr/**, the claim records effort high (the thread session's served effort); reported, not acted on",
        "carrier: 38192 - that open pull edits skills/objectstack-data/SKILL.md too; textual merge is clean, but whichever lands second re-measures the SKILL.md ratchet row (2223 here)",
        "carrier: 37898, 38202, 38249 - the three places ruling record 7180466652 covers and main does not hold yet; named in the ADR, not changed here",
        "carrier: none - an object-level server lock (readonlyWhen on the object) is filed nowhere; the ADR says so in D3 so it is not inferred; in the PR's Acceptance notes, not filed",
        "carrier: seat - no skill-evals round was run for case 30; a round on the objectstack-data file would record its first answer"
      ]
    }
  8. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-29T02:05Z

    PR #38428 merged at 2026-11-29T02:04Z through the merge queue on the maintainer's approval after the seat's ACCEPT (7248851617) and Tier H hand-off (7248872804), as 038ccf5d, and its Fixes line closed this card. What changed:

    Case 30 has no recorded model answer yet; the next data-skill eval round measures it. If #38192 lands later, it re-measures the SKILL.md ratchet row (2224 now). pm:dispatched is cleared on this card, and pm:awaiting-merge on the PR.

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

Metadata

Metadata

Assignees

Labels

area:datadocumentationdomain:skillspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions