Repository navigation
Description
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.
维护者速读
- 用户能看到什么变化:平台文档里有一页说清「一个字段谁能改、什么时候能改」的完整模型,数据技能多一节教 AI 作者四种锁法怎么选;写元数据的人不再在只读、条件只读、界面只读之间猜。
- 为什么做: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 裁决把两层两形两级的模型定了下来,它是契约规则,不该只活在字段描述里;ui 前缀只许用在界面与服务端答案不同的概念上这条命名规则也要有出处可引。
- 出错会怎样:没有这页,后面的卡会各自发明 uiVisibleWhen、uiRequiredWhen 一类的键,或者把界面锁当服务端锁用。
- 要你做什么:ADR 是受管面,PR 要你批合。
Asked
- 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.Immutableshape) 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), souiVisibleWhenanduiRequiredWhenare refused by this rule; - contradiction handling:
uiReadonlybesidereadonly: trueis refused at validate;uiReadonlyWhenbesidereadonlyWhenis allowed and documented; - the server strip stays a strip with the dropped-fields header; a refusal mode is out of scope.
- two tiers: server lock (
- 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
- 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 (2026-11-26) — the model, the phases and the naming rule.
- ADR-0085 §2 (admission test for future keys), ADR-0049 (declared keys are enforced), ADR-0092 (history:
readonlypromoted from a UI hint to a server boundary).
Activity
objectstack-fleet commentedon Nov 26, 2026
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 indocs/adr/**andskills/**, sodomain:skillsis 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).objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim: PM loop round 10 · 2026-11-28T23:50Z
Picked from
pm:queueon the maintainer's order in this seat's project, verbatim: 「开一个专区,接手 area:data 并发3」 (area declaration 7247668950).Session:
session_01L6bhgV6i8jfWwSXjpWJrjAThread session:
session_01L6bhgTpyo8gQyqf9Tj9mfzAccount:
os-salesBranch:
claude/project-thread-bqsxpg(frommain)Domain:
domain:skillsSeat:
repo:objectstack#2Area:
s2-dataFile surface: one new ADR under
docs/adr/and itsdocs/adr/README.mdindex row; one section inskills/objectstack-data/and the eval that exercises auiReadonlystatus field; theobjectstack validaterefusal text foruiReadonlybesidereadonly: 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
mainwith the two tiers, two levels, the "by hand" list, theui-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.mjsbefore its first push.The PR says
Fixes #37405.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim amendment · 2026-11-28T23:52Z · amends claim 7247702130
Writes: File surface, measured by the thread on
mainc610020:docs/adr/0163-*.mdand the generateddocs/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(oneuiReadonlystatus-field case), the two cap lines ofscripts/check-skills-token-ratchet.mjs; and one message inpackages/spec/src/data/field.zod.tspointing at the ADR, with its pin and a@objectstack/specpatch 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 invalidation.mdthat calls imports system-context writes is corrected in the new section, named in the PR body.Clause-②: noandMetadata-protocol: nonestand: the message changes, the accept set does not. Every other line of the claim stands.objectstack-fleet commentedon Nov 29, 2026
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" ] }objectstack-fleet commentedon Nov 29, 2026
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 itsFixesline closed this card. What changed:main: the field write lock's two tiers (server and hand), two forms, two levels, theui-prefix admission rule and the contradiction handling, with the three ruled-not-yet-held items carried by uiReadonly hand lock: the in-app assistant acting for a person does not honour it (its writes run in the cloud AI service) #37898, console: a person-triggered "Duplicate record" action, whose copy takes hand-locked fields' defaults (the rule ruled on #36806, no surface today) #38202 and console: a parent record's whole-record hand lock (object uiReadonlyWhen) does not cover its inline master-detail line rows in the edit form #38249.rules/validation.md, with one routing line inSKILL.mdand eval case 30; theuiReadonly+readonly: truerefusal points at ADR-0163.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.mdratchet row (2224 now).pm:dispatchedis cleared on this card, andpm:awaiting-mergeon the PR.