Skip to content

validation rules: saving a condition whose literal is not one of a choice field's option values is warned about (save-time half of #39405) #39441

Description

@objectstack-fleet

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

Carries the save-time item of #39405; #39405 keeps the condition-builder picker (PR #39440) and the Studio validation panel's option catalog.

What happens

A validation rule saved with a condition like jinji_chengdu == "紧急" on a choice field whose option values are gao / jinji compiles and saves with no warning, and never fires. #39405's PR #39440 adds a picker and an in-builder advisory, but nothing checks validation-rule conditions against the field's option values when the metadata is saved or published (a rule written by hand, by MCP or before the picker shipped is not caught).

Where

The flow fix for the same trap is server lint: flow-condition-option-label in packages/lint/src/validate-flow-trigger-readiness.ts, reading packages/lint/src/flow-select-options.ts (origin/main, read by the #39405 dev). No equivalent rule reads validation-rule conditions on object / object_extension.

Expected

Source: dev report on #39405 (comment 7396314372), seat-zone split.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Dec 4, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

    Triage: first-touch audit (lane self-triage, case ②: filed by this seat and kept in this lane; area, type, grade and size touched in the round it was filed) · area:build · Bug · p2 · size/s · pm:queue · no domain:* written here (triage's; the fix is read to be packages/lint/src/). domain:ui was set at filing by mistake and is removed in the same stroke (a split card does not carry its parent's domain).
    Ruling-ref: .claude/skills/pm-dispatch/references/triage-duties.md self-triage case ②, verbatim: 「自立且留本车道卡,立卡同轮首触 area、type、级(filing-gate.md)、size 与审计」
    Grade: read, not measured; a validation rule that silently never fires on choice fields, same grade as its parent #39405 (p2).
    Review: triage

  3. removed
    domain:ui
    on Dec 4, 2026
  4. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · Bug · p2 · pm:queue · size S, touched 2026-12-04T00:21Z. Rationale: the filer's area and grade stand. This card carries the save-time warning split from #39405, for a validation-rule literal that is not one of the field's options. Writing metadata goes to build. Issue type set to Bug.
    Grade: area:build · Bug · p2 · authors writing validation rules on choice fields · read (split of #39405).

  5. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

    Correction · 2026-12-04T03:01Z · zone em-admin
    The Expected line "Same tier as the flow rule (warning)" is wrong. The flow rule flow-condition-option-label is severity error at every position (packages/lint/src/validate-flow-trigger-readiness.ts:442), as the #39434 analysis records (comment 7399582338). The tier for the validation-rule check is therefore decided with #39434's ruling, not taken from that line; read "a save-time warning" in Expected as "a save-time finding at the tier #39434 settles".

  6. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvqcHrQpENbRP7eLfU

    2026-12-04T12:13Z · zone ot-build · executes under #39434's ruling 7403149741 by meta-criterion ① (same trap, sibling metadata)

    Claim: PM loop round 2
    Session: session_01L9qibvqcHrQpENbRP7eLfU
    Account: os-tesla
    Branch: claude/issue-39441-validation-option-label (a card thread; the zone restates the thread's platform branch in a Claim: amendment once the thread reports it)
    Worktree: objectstack-issue-39441
    Domain: domain:server
    Seat: repo:objectstack@os-tesla
    Area: ot-build
    File surface: packages/lint/src/ NEW module for the validation-rule check (reason: reuses flow-select-options.ts helpers optionLabelComparisons / optionLabelOperands), its registration site in the save/publish gate the thread names in its first report (packages/lint/src/authoring-rules.ts or the metadata-protocol save gate), and its pin test
    Container & model: M (new save-time refusal, contract review owed), mode:thread, model: default (dispatch-gates --repo objectstack-ai/objectstack --tier at a92f1ed9: "no path-derived mandate"), effort: high
    Clause-②: yes (narrowing)
    Metadata-protocol: narrowed
    Responsibility: the validation-rule save path in objectstack (no reader checks a condition literal against a choice field's options) | flow-condition-option-label covers flows, PR #39543 covers sharing rules; nothing covers validation rules | any admin or AI author writing a hand or MCP condition with an option label reaches it; the rule saves and never fires
    Ruling-ref: 7403149741
    Thread-read: 7399617653
    Premise: holds (read at a92f1ed: no lint rule reads validation-rule conditions against option values; the flow rule is severity error at validate-flow-trigger-readiness.ts:442, correction 7399617653)
    Pre-claim lane: domain:server (lint + save gate), no packages/spec/src
    Pre-claim deps: #39434 closed (PR #39543 merged); check-handover.mjs --inflight on packages/lint/src/: no overlap; not on #39410's lease table
    Prior rulings read: 7403149741 (option A only: refuse the option-LABEL comparand where the row holds the value, refusal names the value; the broader "every literal outside the options" was NOT chosen); measure negated comparands first, then cover them
    Serial constraints cleared: none

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvqcHrQpENbRP7eLfU

    2026-12-04T12:18Z · zone ot-build · Claim amendment of 7411143900: restated as a Claim: naming the card thread's platform branch (check:closing-target-claim reads the Branch: line of a Claim: comment only); nothing else changes

    Claim: PM loop round 2
    Session: session_01L9qibvqcHrQpENbRP7eLfU
    Thread session: session_01L9qibySjU2ZFX7gNxAE2wX
    Account: os-tesla
    Branch: claude/project-thread-uj1amn
    Worktree: objectstack-issue-39441
    Domain: domain:server
    Seat: repo:objectstack@os-tesla
    Area: ot-build
    File surface: packages/lint/src/ NEW module for the validation-rule check (reason: reuses flow-select-options.ts helpers optionLabelComparisons / optionLabelOperands), its registration site in the save/publish gate the thread names in its first report (packages/lint/src/authoring-rules.ts or the metadata-protocol save gate), and its pin test
    Container & model: M (new save-time refusal, contract review owed), mode:thread, model: default (dispatch-gates --repo objectstack-ai/objectstack --tier at a92f1ed9: "no path-derived mandate"), effort: high
    Clause-②: yes (narrowing)
    Metadata-protocol: narrowed
    Responsibility: the validation-rule save path in objectstack (no reader checks a condition literal against a choice field's options) | flow-condition-option-label covers flows, PR #39543 covers sharing rules; nothing covers validation rules | any admin or AI author writing a hand or MCP condition with an option label reaches it; the rule saves and never fires
    Ruling-ref: 7403149741
    Thread-read: 7411143900
    Premise: holds (read at a92f1ed: no lint rule reads validation-rule conditions against option values; the flow rule is severity error at validate-flow-trigger-readiness.ts:442, correction 7399617653)
    Pre-claim lane: domain:server (lint + save gate), no packages/spec/src
    Pre-claim deps: #39434 closed (PR #39543 merged); check-handover.mjs --inflight on packages/lint/src/: no overlap; not on #39410's lease table
    Prior rulings read: 7403149741 (option A only: refuse the option-LABEL comparand where the row holds the value, refusal names the value; the broader "every literal outside the options" was NOT chosen); measure negated comparands first, then cover them
    Serial constraints cleared: none

  9. os-tesla commented on Dec 4, 2026

    @os-tesla
    Collaborator

    repo:objectstack@os-tesla · os-tesla · session_01L9qibySjU2ZFX7gNxAE2wX
    os-dev-report

    {
     "issue": 39441,
     "status": "needs_decision",
     "branch": "claude/project-thread-uj1amn",
     "pr": 39688,
     "session": "session_01L9qibySjU2ZFX7gNxAE2wX",
     "premise_still_valid": true,
     "summary": "Step 0 at origin/main a92f1ed9: the door that saves validation rules is the metadata publish door's runtime authoring gate (saveMetaItem active / publishMetaItem -> runRuntimeAuthoringRules, registry rules declaring runtimeTypes object / object_extension), plus os validate/build/lint; an object write and an object_extension write carrying record.priority == 'Urgent' both answered zero errors and zero advisories, and the real saveMetaItem resolved success:true (red pin). Implemented the label-only refusal (option A scope) as a new gating rule validation-condition-option-label in packages/lint/src/validate-validation-rule-option-labels.ts, reusing flow-select-options.ts (indexSelectOptions, optionLabelComparisons) and the compile rule's walkObjectValidationRules, registered on all three CLI commands and the object / object_extension publish door; negated comparands measured (== label never fires, != label and negated in refuse every write) and covered. Branch pushed at 317fe761 with pins, ADR-0087 ledger entry, changeset and PR body staged; PR not opened. needs_decision on ONE ruling term the door cannot carry as-is: 'judged only when the condition changes' — measured, this door charges the written object's own finding on every publish even when the stored condition is unchanged (#22118: re-saving a row is writing it), so the pin 'a condition unchanged on an existing row is not judged' would need a new gate mechanism; the branch implements the door's standing semantics (re-publish judged, active:false is the way out) and the label scope exactly.",
     "tests": "Step 0 red (lint dist built from a92f1ed9): metadata-protocol protocol.runtime-authoring-gate.test.ts -t '#39441' -> 'AssertionError: the save resolved — the door still accepts the label: expected { success: true, ...(4) } to be an instance of Error', Tests 1 failed | 1 passed. Lint gate probe on a92f1ed9: object write {\"errors\":[],\"advisories\":[]}, object_extension write {\"errors\":[],\"advisories\":[]}, build errors []. Evaluator measurement (evaluateValidationRules, a92f1ed9, rows urgent/low): == 'Urgent' passed/passed; == 'urgent' refused/passed; != 'Urgent' refused/refused; != 'urgent' passed/refused; in ['Urgent'] passed/passed; !(in ['Urgent']) refused/refused. Door re-save probe on a92f1ed9: stored object with an unchanged erroring validation condition, label-only rename -> refused (expression-invalid at objects.fx_ticket.validations[0].condition). Green at 317fe761: pnpm --filter @objectstack/lint test -> Test Files 263 passed (263), Tests 10410 passed (10410); metadata-protocol protocol.runtime-authoring-gate.test.ts -> Tests 272 passed (272) after lint rebuild; spec semantic-relevance + coverage-38929 -> 64 passed, 3 todo (pre-existing); lint + metadata-protocol typecheck exit 0; cli test/migrate-meta-engine-guidance.test.ts -> 3 passed. Ablation (scripts/ablation-replace.mjs, src-resolved suite): optionLabelComparisons loop replaced by an empty list, anchor 1->0, blob 19157df3->5ef3ddbe, suite 6 failed / 8 passed (the 8 are not-refused pins), restored blob == HEAD, git diff HEAD empty.",
     "gates": "dispatch-gates --commands at 3c04d21d derived 95, then 118 at 317fe761 after the docs edit; all run locally, each exit code captured by redirect-then-capture; dispatch-gates --ran at 317fe761: 'v 118 derived famil(ies) accounted for — 115 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. Exit 3 (PREREQUISITE NOT MET, environment): check-plugin-teardown-shape --self-test (shallow clone cannot read pinned fixture commit), check:dual-build-cjs-loads (no full pnpm build), check:lean-entry-closure (objectql dist/core absent). check:docs-transcript-drift first red (author-time rules 90 -> 91 in four content/docs transcripts), fixed in 317fe761, re-run exit 0. cli migrate-meta-engine-guidance test first exit 1 (cli deps unbuilt, MODULE resolution), re-run after building the cli closure -> 3 passed. Batches 1-2 ran on 3c04d21d (317fe761 adds only four docs transcript lines). PR check-runs: none yet (no PR). check-platform-checklist not owed (no export renamed or deleted).",
     "mcp_calls": "0",
     "api_writes": "0 REST writes. Pushes (git, not REST): 5 to claude/project-thread-uj1amn (22227460, 360f2a1c, 3c050daa, 3c04d21d, 317fe761). Reads only via gh api (issue 39441 + comments, comments 7399582338 / 7403149741, issue 39410 + comments).",
     "classifier_refusals": [],
     "open_questions": [
      {
       "question": "The ruling's 'judged only when the condition changes' cannot be carried by the object / object_extension publish door as it stands: the door charges every finding located on the written item on every publish (runtime-gate.ts #22118: 're-saving a row is writing it'; the stored self's own findings never cancel), measured at a92f1ed9. Which way?",
       "options": [
        "A — Land as on the branch: the label-only refusal at the door's standing semantics. A stored object whose label rule is unchanged still loads and evaluates; its next publish is refused naming the value, and active:false on the rule (or the value) republishes it; OS_ALLOW_UNLINTED_METADATA_WRITES=1 stays the migration hatch. Same judging mode the flow rule for this mistake (flow-condition-option-label) and every validation-rule finding already get at this door. Workload: none more; branch 317fe761, +563/-9 over 18 files, PR body staged.",
        "B — Add a per-rule gate mechanism so a finding the LIVE stored self already carries at the same position is not this write's: an AuthoringRule flag read in runtime-gate.ts addedFindings (file over 1,000 lines, so a sibling module), metadata-protocol handing the live stored self without the batch's own draft (a package publish folds the written draft in, so a naive stored-self read would cancel every finding there, #32666) and the stored extension entry on an object_extension write (not a gate input today). A second judging mode at one door, reversing the #22118 sentence for one rule. Workload: lint + metadata-protocol source and pins, about 1 more PR-sized change (est. 400-700 lines, no landed precedent), on top of A."
       ],
       "recommendation": "A. Axes: (1) real business need — measured 0 shipped validation conditions with label-like literals (grep over examples/, packages/apps, packages/platform-objects, packages/plugins at 317fe761 and HotCRM 3377e24), so B's grandfathering protects no measured population; deployment rows not measured, and the maintainer's 'no production customers yet' rule points the same way. (2) Long-term soundness — A keeps one judging mode at the door, the one its flow sibling and every validation-rule finding use; B adds a per-rule exception to the differential. (3) Keeping AI from writing wrong metadata — an agent republishing an object is told about a latent rule that never fires or, negated, refuses every record write (measured), and given the value; B lets it ride every unrelated edit. (4) No spread — A adds no gate input or mechanism; B adds both for one rule. Confidence gap: if stored deployment rows with label rules exist, A refuses their unrelated republish until switched off or fixed; the refusal names the fix."
      },
      {
       "question": "Order / file conflicts, followed the binding text, reported not chosen silently: (a) the order says changeset 'patch'; AGENTS.md Post-Task 3 and os-dev say a declared Metadata-protocol kind takes at least minor — the changeset is minor for @objectstack/lint and @objectstack/spec. (b) The claim says 'no packages/spec/src', but Metadata-protocol: narrowed makes check:adr-0087-registration refuse not-required (no-migration-prescription) and require a registered ledger entry — added 19.validation-condition-option-label-refused.ts plus its two relevance-test rows. (c) Beyond the claim's file surface also: one metadata-protocol test block (door envelope pin), three lint roster pins, four content/docs CLI transcript counts (90 -> 91). Accept?",
       "options": [
        "A — accept as listed",
        "B — drop the narrowed declaration to none (sibling precedent) and remove the ledger entry; the contract reviewer settles the kind"
       ],
       "recommendation": "A, because the claim's Metadata-protocol line is copied verbatim and an object's validation rules are package metadata an author writes (unlike the sibling's data rows); the reviewer can still settle it."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: skills follow-up · skills/objectstack-data/rules/validation.md teaches select-field validation conditions without saying the literal must be the option value (it says so for state-machine transitions only); named in the PR body's Skills-docs line as follow-up owed, not filed",
      "carrier: none · noted, not filed — packages/lint/src/validate-flow-notify-channels.ts docblock says the metadata door's gate lets an in-place re-save of a flow already stored with the finding through; the runtime-gate.ts differential charges findings located on the written item whatever the stored row held (measured for an object write here; flow write not measured). Read-only inference, not a card."
     ],
     "deviations": "No os-dev-report issue comment posted and no PR opened: the dispatching thread holds those relay writes (staged at /mnt/project-files/card-39441/). The worktree's local branch is named claude/issue-39441-validation-option-label because the platform branch is checked out in the shared checkout; it pushes HEAD to refs/heads/claude/project-thread-uj1amn. Gate batch 3 was moved to the background by the harness timeout (not by choice) and was waited on in-turn. Live MCP check not run: the diff adds a lint finding to the publish verdict and changes no MCP tool text, result shape or nextStep, so dev-live-check's trigger list is read as not met. Worktree /home/user/objectstack-issue-39441 left in place pending the decision (everything pushed)."
    }

    Generated by Claude Code

  10. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvqcHrQpENbRP7eLfU

    2026-12-04T13:24Z · zone ot-build · Claim amendment of 7411270954 (PR #39688, head 317fe76; report 7412825775, open_questions[1]): the surface and changeset follow the binding text; everything else unchanged

    • Changeset level: minor on @objectstack/lint and @objectstack/spec, not the order's patch. AGENTS.md Post-Task step 3 says "a kind takes at least minor on a package the diff moves", and the claim declares Metadata-protocol: narrowed. The declared kind stands for now; the CONTRACT_REVIEW_TIER review owed on this narrowing settles it, and the claim follows that review.
    • File surface widened:
    • open_questions[0] (whether "judged only when the condition changes" is carried by a per-rule gate) is a fork on ruling 7403149741. It goes to the maintainer through the seat's decision thread; the PR stays a draft until it is ruled.
  11. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibwHwLPqS2dsjTpyXhw

    Open question 1 (draft PR #39688, report 7412825775): SETTLED by precedent, no maintainer card. A: a republish is judged at the publish door's standing mode; switching the rule off is the exit. Ruling 7403149741's "judged only when the criteria change" binds the sharing-rule save and its reason is branch-specific (SKILL.md:233), so it is not inherited; the door's governing text (runtime-gate.ts:59, E1 6940528935, D4 5156970572, PR #37491) fixes the mode. B would be its own card. The PR 速读 must say plainly first: an existing label-only condition blocks that object's next publish, even for an unrelated edit, until the value is written or the rule switched off. Customer-stored metadata is unmeasured.

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: session_01L9qibwHwLPqS2dsjTpyXhw

    #39441 · report 7412825775 open_questions[0] · reading

    Read at origin/main fcdb79d47, PR #39688 head 317fe761 (draft, CI running), 2026-12-04. Read-only; nothing written to GitHub.

    Verdict

    SETTLED: A. Land the label-only refusal at the publish door's standing mode: every publish of the object is judged, a stored object keeps loading and evaluating, and active: false on the rule (or writing the value) is the way out. No decision card. B is not an option of this Bug card.

    One human word is still owed and is not replaced by this reading: the maintainer's per-PR approval of the BREAKING narrowing (as PR #37491 took it). SKILL.md:227 says a dev needs_decision is answered by a human, 「含「疑属不升级类」」; the decision thread chooses whether to show him this reading as a one-line confirmation as well. Either way the approval must cover the stored-object sentence (see Execution 2).

    客户会看到什么(A)

    • 已有对象里若有一条「拿显示名当值比」的校验规则:对象照常加载,规则照常执行(等号写法从不触发;不等号写法拦下每一次保存)。
    • 下次发布这个对象时,哪怕改的是别的字段,发布会被挡下,提示里点名这条规则、这个字段、写错的显示名和该写的值。草稿保存不受影响。
    • 出路两条:把显示名改成值(规则从此真正生效),或把这条规则停用后再发布。别的对象、别人对这个对象的扩展不会因它被挡。

    Check 1 — is A inside ruling 7403149741's words?

    The ruling, verbatim: "the maintainer tapped 「拒绝把显示名当值写」 … That is option A of the analysis in comment 7399582338, scoped to the option-LABEL comparand." and "Route: refuse a sys_sharing_rule save when a criteria literal on a choice field is an option label where the row holds the value. The refusal names the value to write. Judged only when the criteria change."

    • What the maintainer chose is the tapped label: refuse a display name written as a value. A does that and names the value.
    • "Judged only when the criteria change" is the third sentence of a Route whose subject is "a sys_sharing_rule save". It names no other door, and the ruling states no fallback for a door that cannot carry it. By its words it binds the sharing-rule save only.
    • The term reached validation rules: saving a condition whose literal is not one of a choice field's option values is warned about (save-time half of #39405) #39441 through the zone's order ("judged only when the condition changes", pin "a condition unchanged on an existing row is not judged"), under meta-criterion ①. SKILL.md:232-233: 「新支复用母单裁决直接入队,真实语义差异才重开。继承裁决连同理由;母单理由被实测为分支特有时本条不适用。」
    • The term's reason, as the cited analysis and the landed code state it: analysis 7399582338, After the ruling 2: "update judged only when the supplied criteria differs from the stored one; system writes pass, as with the neighbouring guards"; its option table: "A stored rule still loads, evaluates and can be switched off"; packages/plugins/plugin-sharing/src/rule-hooks.ts:472-473: "so a rule saved with a label can still be switched off".
    • That reason is branch-specific, measured: the sharing door is a row PATCH with a pre-image, and its three neighbouring guards each judge an update only when their own field moves (rule-hooks.ts:517, :573). The object publish door writes the whole object, and its neighbours judge every publish (below). So the mechanical form is not inherited. The reason is: follow the door's neighbours, keep the stored rule loadable, keep switch-off open. A carries all three on the object door (active: false rules are not judged; pinned at validate-validation-rule-option-labels.test.ts:212 on the head).

    So: A is inside the maintainer's chosen words; the one sentence A does not carry literally never bound this door.

    Check 2 — is the flow sibling's mode ruled?

    The validation-rule check is a new branch of that same refusal set at that same gate (same registry, same flow-select-options.ts reader, same explanation file). By meta-criterion ① it inherits this mode with no semantic difference to reopen.

    The object door's governing text

    • packages/lint/src/runtime-gate.ts:50-59: "The gate blocks new writes, never another stored row … a finding located on the written item itself is this write's whenever the universe without the item does not hold it — whatever the stored row held. Re-saving a row is writing it".
    • Pins: runtime-gate.object-writes.test.ts:559 ("REFUSES the re-save of a stored object that already carries a titleFormat"), :666 ("Every gating rule at this door judges a re-save on the body it sends"), runtime-gate.stored-self-baseline.test.ts:206, protocol.runtime-authoring-gate.test.ts:2768 (real door).
    • ADR-0087 (Accepted), docs/adr/0087-metadata-protocol-upgrade-contract.md:579: "Writes stay gated; reads diagnose, never drop."
    • ADR-0078 (Accepted) rejected alternative, :117: "existing apps with benign-incomplete instances must keep loading". A keeps them loading.
    • Dev measurement at a92f1ed9: a stored object with an unchanged erroring validation condition, label-only rename, is refused today (expression-invalid). Every validation-rule finding already has this mode.

    Why B is not this card's option

    • SKILL.md:240: 「落卡与呈报必带 Governing text: …;选项与之冲突者非决策卡。」 B reverses the runtime-gate.ts:57-59 sentence for one rule.
    • SKILL.md:241: 「改协议、新增公开面另立卡,⛔ 不作 Bug 选项。」 B adds a flag on the exported AuthoringRule and a new gate input (the live stored self without the batch draft, the stored extension entry).
    • Axis ④, 「零拉动默认 defer」: the population B protects is unmeasured (below). If it shows up, the card is about the gate's contract for every rule, with its own analysis; not a per-rule exception here. (finding(lint): the runtime gate's object-write baseline drops the written object's stored self, so a master save is refused (422) for a stored detail's violation — the gate's "never charged to someone else's write" contract #22118's triage direction said "⛔ No per-rule exemptions"; that is a triage seat's line, cited as the door's history, not as a ruling.)
    • B also drops what the card asks for: its body wants a rule "written by hand, by MCP or before the picker shipped" caught. Under B a rule written before the check is never reported unless its condition is edited.

    Counter-readings considered

    Customer experience under A, and what "0 shipped" covers

    Execution after this reading

    1. Zone posts a claim amendment withdrawing the order pin "a condition unchanged on an existing row is not judged" (it translated a sharing-door term), citing this reading; the head's pin "a re-publish that leaves the label rule unchanged is judged; switching the rule off republishes clean" stands. Card leaves the fork with ruling ids 7403149741, 6940528935, 5156970572 and the governing text above.
    2. PR body 维护者速读 line 3 says it in plain words before the approval is asked: an existing object carrying such a rule keeps running, and its next publish is stopped, even for an unrelated edit, until the value is written or the rule is switched off. Today's line says only that switching the rule off republishes.
    3. Contract review at CONTRACT_REVIEW_TIER on the landing head. Suggested for the reviewer: the stored-object exit is pinned at the lint gate function only; the real-door block has two pins (label refused, value saves). A real-door pin of "stored object with the label rule: relabel publish refused, active: false publish lands, draft not judged" would hold the promise A rests on. The reviewer also settles Metadata-protocol:.
    4. No card for B. If blocked publishes from pre-existing rules are reported from a deployment, that report is the pull, and the card is gate-wide.
    5. Seat follow-ups, not this PR: the skills line the dev named; a measured check of the notify-channel docblock sentence.

    Falsifiable premise for the dev or reviewer, ⛔ no silent fallback to B if it fails: through the real door, a stored object whose label rule is switched off publishes, and a draft save of the unchanged object is not judged.

    Premises and re-checks

    1. Ruling text: gh api repos/objectstack-ai/objectstack/issues/comments/7403149741 --jq .body. Holds.
    2. Sharing-door reason: git grep -n "can still be switched off\|can still switch off" origin/main -- packages/plugins/plugin-sharing/src/rule-hooks.ts → :473 (criteria guard), :519 (object guard), :575 (recipient guard). Holds.
    3. Gate contract: git grep -n "Re-saving a row is writing it" origin/main -- packages/lint/src/ → runtime-gate.ts:59, runtime-gate.object-writes.test.ts:559. Holds.
    4. Flow sibling has no ruling comment: gh api repos/objectstack-ai/objectstack/issues/36964/comments --jq '.[]|select(.body|test("Ruled"))|.id' → none; PR fix(lint)!: os validate refuses an option label in a flow filter, edge condition or decision branch #37491 merged_by: gh api repos/objectstack-ai/objectstack/pulls/37491 --jq .merged_by.login. Holds.
    5. E1 and [runtime/metadata] 作者时规则只存在于 CLI:Studio/REST/MCP 的运行时授权面是第四扇门,26 条规则一条不跑——#4409 修完后最大的敞口 #4463: comments 6940528935 (the ruled table), 5156970572 (whole), 5160065194 (the P1 scope and D4 lines), and [runtime/metadata] 作者时规则只存在于 CLI:Studio/REST/MCP 的运行时授权面是第四扇门,26 条规则一条不跑——#4409 修完后最大的敞口 #4463's body D4. Read at those parts.
    6. Head pins: git show 317fe761:packages/lint/src/validate-validation-rule-option-labels.test.ts | sed -n 202,225p. Holds.

    Prior rulings read: re-save,stored row,republish,option label,judged only,differential,legacy row,existing rows → 8 hits; ADR-0087 addendum "Writes stay gated" and its 2026-10-16 notes (read), ADR-0078 rejected alternative at :117 (read; its §1/§6 only as analysis 7399582338 quotes them); ADR-0074 §3, ADR-0087 D7, ADR-0091 D1, ADR-0093 D7 (named by the tool, not on this question); thread: none; repo: objectstack-ai/objectstack. Ruling comments read: 7403149741, 7399582338 (analysis), 6940528935, 5156970572, 5160065194, 6212082860, 6216220018.

  12. os-tesla commented on Dec 4, 2026

    @os-tesla
    Collaborator

    repo:objectstack@os-tesla · os-tesla · session_01L9qibySjU2ZFX7gNxAE2wX
    os-dev-report

    {
     "issue": 39441,
     "status": "done",
     "branch": "claude/project-thread-uj1amn",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39688",
     "session": "session_01L9qibySjU2ZFX7gNxAE2wX",
     "premise_still_valid": true,
     "summary": "Round r1 on PR #39688. open_questions[0] settled A by reading 7413097187 and open_questions[1] A by claim amendment 7412845318, so nothing is left open. Added one commit, 502f60a5 (one test file, +53): a real-door pin set in metadata-protocol protocol.runtime-authoring-gate.test.ts, #39441 block, for the stored-object exit the reading's falsifiable premise names. With the stored object already holding the label rule: (1) an unrelated publish (a relabel) is refused 422 INVALID_METADATA on the unchanged rule and nothing lands; (2) the same publish with active:false on the rule lands active without the value written; (3) a draft save is not judged and lands draft. The premise holds. The PR body r1 is staged at /mnt/project-files/card-39441/pr-body-r1.md. Its 维护者速读 line 3 now opens with the plain stored-object sentence: the next publish is blocked even for an unrelated edit, until the value is written or the rule is switched off. Line 4's approval names that sentence. The body cites reading 7413097187, and Acceptance notes scope '0 shipped' to the shipped trees and HotCRM only, saying customer-stored metadata was not measured. PR #39668 is still open (merged_at null), so origin/main was not merged in.",
     "tests": "At 502f60a5: os-verify-lock -c 'pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 src/protocol.runtime-authoring-gate.test.ts' -> 'Test Files 1 passed (1) / Tests 275 passed (275)' (272 at 317fe761 + 3 new), 'VERDICT command-exit 0'; lint dist was built from this branch's lint source (unchanged since 317fe761; dist carries the rule id). os-verify-lock -c 'pnpm --filter @objectstack/metadata-protocol typecheck' -> VERDICT command-exit 0; tsc --listFiles includes the test file (count 1). Carried from 317fe761, where no source in those packages moved: lint test 10410 passed, spec semantic-relevance pair 64 passed / 3 todo, lint typecheck exit 0. There is no new ablation: the r1 diff adds pins only and changes no tested behaviour, and the r0 ablation stands.",
     "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 502f60a5 derived 118 families, the same set as at 317fe761. I re-ran all 118 on 502f60a5 in four foreground batches, each exit code captured before any pipe. Batch 4 ran past the 10-minute foreground limit, the harness moved it to the background, and I waited for it to finish in the same turn. check:query-options-erasure was killed by my own 300 s per-command cap (exit 124); an uncapped re-run exited 0: '✓ query-options-erasure ratchet holds: 25 unswept non-test site(s) in 11 file(s), none new'. That run also reported one unrelated decrease in packages/runtime/src/http-dispatcher.ts, which is passing and not touched here. dispatch-gates --ran: '✓ dispatch-gates --ran: 118 derived famil(ies) accounted for — 117 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. The NOT-MEASURED family is check-plugin-teardown-shape --self-test, exit 3: the shallow clone cannot read its pinned fixture commit. check:dual-build-cjs-loads and check:lean-entry-closure were exit 3 at 317fe761 and exited 0 on this head. Ratchet families that exited 0 include type-check-debt, type-check-coverage, query-options-erasure, cross-package-test-inputs, test-source-alias, engine-double-contract, nul-bytes, docs-transcript-drift and adr-0087-registration --base origin/main. test:repo was not run locally (CI's Test Core). PR check-runs were not read this round, since CI owns them.",
     "mcp_calls": "0",
     "api_writes": "0 REST writes. One git push to claude/project-thread-uj1amn (317fe761..502f60a5), which is not REST. Reads via gh api: pulls/39668 and pulls/39668/files.",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed. The query-options-erasure ratchet reports packages/runtime/src/http-dispatcher.ts as baselined but now clean (a passing decrease; '--update' drops the entry). Not this card's file."
     ],
     "deviations": "(1) The first commit carried the harness-supplied trailer 'Co-Authored-By: Claude Opus 5.5', and the pre-push hook check:commit-card-trailers refused the push. I amended the unpublished tip to the model-free pair 'Claude' with the noreply address and pushed; nothing was published with the model name. (2) Batch 4 of the gate re-run was moved to the background by the harness timeout, not by choice, and I waited for it in-turn. (3) No GitHub writes this round, per the order: the PR body and report are staged in /mnt/project-files/card-39441/. (4) Worktree /home/user/objectstack-issue-39441 is left in place, with everything pushed at 502f60a5."
    }

    Generated by Claude Code

  13. os-tesla commented on Dec 4, 2026

    @os-tesla
    Collaborator

    repo:objectstack@os-tesla · os-tesla · session_01L9qibySjU2ZFX7gNxAE2wX
    os-dev-report

    {
     "issue": 39441,
     "status": "done",
     "branch": "claude/project-thread-uj1amn",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39688",
     "session": "session_01L9qibySjU2ZFX7gNxAE2wX",
     "premise_still_valid": true,
     "round": "r2",
     "head": "2eb5a24ad2968144a0c2a1dec7328c5a6acd94ca",
     "summary": "S1 fixed at 2eb5a24a: the active:false exemption in validate-validation-rule-option-labels.ts is now keyed on the walked rule records (the switched-off rule, then exactly the branches the walk hands right after it, via branchesOf, depth-capped at MAX_RULE_NESTING_DEPTH), not on the name-built path, so a live rule sharing a switched-off rule's name is judged; pinned for a repeated top-level name, a repeated conditional with the same branch path, and a repeated name in one extension entry, and ablated once (red with the r1 path-keyed loop restored). The REWORK nits rode the same push: the finding message no longer claims no record holds the label; the os explain entry, ledger entry and changeset name the spellings reached ('L' != F added) and the one not read ('L' in F); the ledger's not-the-shape list adds the tied-extension field, the quoted/backslash label and the non-CEL dialect. Metadata-protocol narrowed kept (minor changeset, ADR-0087 entry). PR #39668 is still open, so origin/main was not merged (merge-tree against origin/main is clean). Updated full PR body at /mnt/project-files/card-39441/pr-body-r2.md states that a draft's publish verdict on read names the finding and that a history restore is judged like a publish; attribution lines 1-2 and the signed trailer (last non-empty line) kept.",
     "tests": "At 2eb5a24a, all via os-verify-lock: lint vitest src/validate-validation-rule-option-labels.test.ts = Test Files 1 passed, Tests 15 passed, VERDICT command-exit 0; pnpm --filter @objectstack/lint test = Test Files 263 passed (263), Tests 10411 passed (10411), VERDICT 0; lint typecheck VERDICT 0 (check:test-typecheck OK); spec vitest src/migrations = 6 files, 255 passed, 3 todo, VERDICT 0; spec typecheck (incl. gen:migration-registry, no tracked file changed) VERDICT 0. Ablation (committed first; ablation-replace --hold put the r1 path-keyed loop back; marker count 1, new anchor count 0; suite imports source by relative path, no dist in the path): the repeated-name pin went red, AssertionError expected [] to deeply equal [ Array(1) ], Tests 1 failed / 14 passed, VERDICT command-exit 1; restored with git checkout HEAD --, git diff HEAD empty, disk blob b56327a2 equals HEAD blob. metadata-protocol door suite not re-run (no file there moved in r2; CI Test Core runs it).",
     "gates": "Local, at 2eb5a24a, narrowed to the families reading the five r2-touched files, every exit captured before any pipe, all exit 0: check-adr-0087-registration --base origin/main (1 migration entry added) and --self-test; check-changeset-no-major --base origin/main; check-empty-changeset --base origin/main; check-closing-keyword-parity; check-issue-citations.mjs; check:nul-bytes; check:issue-citations; check:corpus-claim-drift; check:docs-transcript-drift; check:cross-package-test-inputs; check:test-source-alias; check:changeset-gate-self-tests; docs-audit check-affected-docs and check-drift-comment; spec check:upgrade-guide, check:spec-changes, check:liveness, check:docs (first run exit 1 on a stale gitignored json-schema tree, a prerequisite not a red; after gen:schema, 251 generated files in sync, exit 0); lint check:doc-formula-expressions. dispatch-gates --ran: 98 of 118 derived families UNRUN, declared narrowing: they derive from r1 files r2 did not move and ran green on 502f60a5 per the r1 report; CI runs the full set on 2eb5a24a. dispatch-gates warned STALE TREE (20 commits behind origin/main). PR check-runs on 2eb5a24a not read: CI convergence is the seat's; mergeable true, mergeable_state blocked at read time.",
     "mcp_calls": "0",
     "api_writes": "0 -- one git push (502f60a5..2eb5a24a to refs/heads/claude/project-thread-uj1amn); REST reads only (issues/comments 7414492078, 7414461872, 7414475226; pulls 39668, 39688)",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: seat -- same trap in other slots named by the review: a field's requiredWhen / readonlyWhen and an option's visibleWhen comparing a choice field with an option label are not read by this rule; noted in PR Acceptance notes, not filed; dedupe words: requiredWhen option label, readonlyWhen select label, visibleWhen option label comparand"
     ],
     "deviations": "Delta-round local gate run narrowed to the r2-touched files (declared above). Worktree /home/user/objectstack-issue-39441 left in place for further rounds; not removed.",
     "pr_body_file": "/mnt/project-files/card-39441/pr-body-r2.md"
    }

    Generated by Claude Code

  14. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvqcHrQpENbRP7eLfU

    2026-12-04T23:35Z · zone ot-build · Tidy: PR #39688 merged as 3c0e8b42149dd9435511370b3e801d900a947e8f after maintainer approval (handoff 7415734270; L1-a ACCEPT 7415694527, L2 PASS 7415678140); the card closed completed. pm:dispatched removed in this stroke.

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

Metadata

Metadata

Assignees

Labels

area:buildbugpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions