You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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
Saving a validation rule whose condition compares a select / radio / multiselect / checkboxes field to a literal that is not one of its option values gets a save-time warning naming the field and, where the literal is a label, its value.
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
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).
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".
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
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
{
"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)."
}
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.
One door envelope pin in packages/metadata-protocol/src/protocol.runtime-authoring-gate.test.ts.
Lint roster pins in packages/lint/src/ (index.ts, rule-explanations*.ts, three existing runtime-gate tests).
Four content/docs CLI transcript rule counts (90 → 91).
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.
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.
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).
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'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.
Ruling 5156970572 on [runtime/metadata] 作者时规则只存在于 CLI:Studio/REST/MCP 的运行时授权面是第四扇门,26 条规则一条不跑——#4409 修完后最大的敞口 #4463 (2026-08-02): 「运行时拒绝非法写入」; its D4 as recorded in 5160065194: 「存量 sys_metadata 行:只挡新写入,读路径不拒绝」 with the hatch OS_ALLOW_UNLINTED_METADATA_WRITES=1 for the migration window. The ruled remedy for stored rows that violate a newer rule is the tolerant read path and the hatch, not a per-rule exemption at the write.
PR fix(lint)!: os validate refuses an option label in a flow filter, edge condition or decision branch #37491 (same trap, same gate, same label reader) was merged on the maintainer's approval with this sentence in its 维护者速读: 「以前能保存的这类流程,下次以启用状态保存或构建时会被拒绝并提示应写的值」, and in the body: "refused now … at its next active publish … stored flows are not rewritten or refused at boot". That is the flow sibling's mode with the maintainer's per-PR word, which is the form of word a narrowing takes.
A flow write is the sole member of its collection at this gate (SUBJECT_ONLY_CONTEXT_KEYS, runtime-gate.ts:489), so a re-published flow with an unchanged label condition is judged. Read in source, not run.
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).
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.
packages/lint/src/validate-flow-notify-channels.ts:40-45 says an in-place save of a flow stored with its finding "still saves". No pin holds that sentence and the gate source reads the other way for a flow write. Unmeasured; the dev reported it out of scope. Nobody should cite it as a precedent for B before it is measured.
"no production customers yet" (quoted by analysis 7399582338 and the dev report): I did not find its record in AGENTS.md, the skill or this project's memory. Not used as authority here.
Customer experience under A, and what "0 shipped" covers
Exits: write the value, or active: false on the rule; operators have the D4 hatch. A sibling object's stored label rule is not charged to another write, and a target object's own stored label rule is not charged to an extension write (pins on the head, test lines 108 and 221).
Dev's "0 shipped": a grep over examples/, packages/apps, packages/platform-objects, packages/plugins at 317fe761 and HotCRM. My re-grep: 112 record.F ==/!= '…' comparisons in those objectstack paths, 1 capitalised or spaced literal, in a sharing rule on a text-like field (not a validation); HotCRM bde4be7c: 180 comparisons, 0 such literals. Heuristic (capitals or a space), shipped trees only.
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.
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.
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:.
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.
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
Ruling text: gh api repos/objectstack-ai/objectstack/issues/comments/7403149741 --jq .body. Holds.
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.
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.
{
"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."
}
{
"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"
}
Activity
objectstack-fleet commentedon Dec 4, 2026
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· nodomain:*written here (triage's; the fix is read to bepackages/lint/src/).domain:uiwas 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.mdself-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
objectstack-fleet commentedon Dec 4, 2026
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).
objectstack-fleet commentedon Dec 4, 2026
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-labelis 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".objectstack-fleet commentedon Dec 4, 2026
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_01L9qibvqcHrQpENbRP7eLfUAccount:
os-teslaBranch:
claude/issue-39441-validation-option-label(a card thread; the zone restates the thread's platform branch in aClaim:amendment once the thread reports it)Worktree:
objectstack-issue-39441Domain:
domain:serverSeat:
repo:objectstack@os-teslaArea: ot-build
File surface:
packages/lint/src/NEW module for the validation-rule check (reason: reusesflow-select-options.tshelpersoptionLabelComparisons/optionLabelOperands), its registration site in the save/publish gate the thread names in its first report (packages/lint/src/authoring-rules.tsor the metadata-protocol save gate), and its pin testContainer & 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: highClause-②: 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-labelcovers 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 firesRuling-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), nopackages/spec/srcPre-claim deps: #39434 closed (PR #39543 merged);
check-handover.mjs --inflightonpackages/lint/src/: no overlap; not on #39410's lease tablePrior 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
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibvqcHrQpENbRP7eLfU
2026-12-04T12:18Z · zone
ot-build· Claim amendment of 7411143900: restated as aClaim:naming the card thread's platform branch (check:closing-target-claimreads theBranch:line of aClaim:comment only); nothing else changesClaim: PM loop round 2
Session:
session_01L9qibvqcHrQpENbRP7eLfUThread session:
session_01L9qibySjU2ZFX7gNxAE2wXAccount:
os-teslaBranch:
claude/project-thread-uj1amnWorktree:
objectstack-issue-39441Domain:
domain:serverSeat:
repo:objectstack@os-teslaArea: ot-build
File surface:
packages/lint/src/NEW module for the validation-rule check (reason: reusesflow-select-options.tshelpersoptionLabelComparisons/optionLabelOperands), its registration site in the save/publish gate the thread names in its first report (packages/lint/src/authoring-rules.tsor the metadata-protocol save gate), and its pin testContainer & 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: highClause-②: 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-labelcovers 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 firesRuling-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), nopackages/spec/srcPre-claim deps: #39434 closed (PR #39543 merged);
check-handover.mjs --inflightonpackages/lint/src/: no overlap; not on #39410's lease tablePrior 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
os-tesla commentedon Dec 4, 2026
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
objectstack-fleet commentedon Dec 4, 2026
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 unchangedminoron@objectstack/lintand@objectstack/spec, not the order'spatch. AGENTS.md Post-Task step 3 says "a kind takes at leastminoron a package the diff moves", and the claim declaresMetadata-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.packages/spec/src/migrations/entries/semantic/19.validation-condition-option-label-refused.ts(NEW), plus its rows insemantic-relevance.test.tsandsemantic-relevance-coverage-38929.test.ts. Reason:check:adr-0087-registrationrequires a registered entry for a narrowed kind. The coverage-test row is also touched by PR feat(metadata): stored picklist_extension item (#39536 step 2); PATCH /packages/:id refuses unread body keys (#39576) #39668 (Studio: a customer cannot add a value to an installed package's picklist: no door stores a picklistExtensions entry in the .custom pair (item 1 of #39471) #39536); whichever PR lands second merges main.packages/metadata-protocol/src/protocol.runtime-authoring-gate.test.ts.packages/lint/src/(index.ts,rule-explanations*.ts, three existing runtime-gate tests).content/docsCLI transcript rule counts (90 → 91).objectstack-fleet commentedon Dec 4, 2026
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 head317fe761(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: falseon 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_decisionis 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_rulesave 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."sys_sharing_rulesave". 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.packages/plugins/plugin-sharing/src/rule-hooks.ts:472-473: "so a rule saved with a label can still be switched off".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: falserules are not judged; pinned atvalidate-validation-rule-option-labels.test.ts:212on 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?
Ruled:comment on the judging mode.check-prior-rulings.mjs --card 39441: 0 ruling comments on this card's own thread.sys_metadata行:只挡新写入,读路径不拒绝」 with the hatchOS_ALLOW_UNLINTED_METADATA_WRITES=1for the migration window. The ruled remedy for stored rows that violate a newer rule is the tolerant read path and the hatch, not a per-rule exemption at the write.SUBJECT_ONLY_CONTEXT_KEYS,runtime-gate.ts:489), so a re-published flow with an unchanged label condition is judged. Read in source, not run.The validation-rule check is a new branch of that same refusal set at that same gate (same registry, same
flow-select-options.tsreader, 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".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).docs/adr/0087-metadata-protocol-upgrade-contract.md:579: "Writes stay gated; reads diagnose, never drop.":117: "existing apps with benign-incomplete instances must keep loading". A keeps them loading.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
Governing text:…;选项与之冲突者非决策卡。」 B reverses theruntime-gate.ts:57-59sentence for one rule.Bug选项。」 B adds a flag on the exportedAuthoringRuleand a new gate input (the live stored self without the batch draft, the stored extension entry).Counter-readings considered
packages/lint/src/validate-flow-notify-channels.ts:40-45says an in-place save of a flow stored with its finding "still saves". No pin holds that sentence and the gate source reads the other way for a flow write. Unmeasured; the dev reported it out of scope. Nobody should cite it as a precedent for B before it is measured.Customer experience under A, and what "0 shipped" covers
active: falseon the rule; operators have the D4 hatch. A sibling object's stored label rule is not charged to another write, and a target object's own stored label rule is not charged to an extension write (pins on the head, test lines 108 and 221).examples/,packages/apps,packages/platform-objects,packages/pluginsat317fe761and HotCRM. My re-grep: 112record.F ==/!= '…'comparisons in those objectstack paths, 1 capitalised or spaced literal, in a sharing rule on a text-like field (not a validation); HotCRMbde4be7c: 180 comparisons, 0 such literals. Heuristic (capitals or a space), shipped trees only.Execution after this reading
active: falsepublish lands, draft not judged" would hold the promise A rests on. The reviewer also settlesMetadata-protocol:.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
gh api repos/objectstack-ai/objectstack/issues/comments/7403149741 --jq .body. Holds.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.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.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 #37491merged_by:gh api repos/objectstack-ai/objectstack/pulls/37491 --jq .merged_by.login. Holds.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.os-tesla commentedon Dec 4, 2026
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
os-tesla commentedon Dec 4, 2026
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
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibvqcHrQpENbRP7eLfU
2026-12-04T23:35Z · zone
ot-build· Tidy: PR #39688 merged as3c0e8b42149dd9435511370b3e801d900a947e8fafter maintainer approval (handoff 7415734270; L1-a ACCEPT 7415694527, L2 PASS 7415678140); the card closed completed.pm:dispatchedremoved in this stroke.