Repository navigation
fix(objectql): droppedFields on a create names only keys the caller sent, never a middleware fill (#21682) - #21701
Conversation
…no organization_id (#21682) The pins come first so the red on unmodified main is measured. The fix follows. Claude-Session: https://claude.ai/code/session_017ErfyP2Rx7XWHJA27QjyUi Co-authored-by: Claude <noreply@anthropic.com>
…ent, never a middleware fill (#21682) ObjectQL.insert took its caller snapshot (suppliedPerRow) inside the middleware chain's innermost step, after a write middleware had already filled the payload. On a walled posture @objectstack/organizations fills an absent organization_id, so the static-readonly strip took the platform's own value and droppedFields reported it on every create that named no organization. The console shows every non-empty droppedFields as a warning toast. The keys each row carries are now recorded at insert's entry, before the chain runs, keyed by the row object. The snapshot keeps only those keys. The values stay as the chain handed them on, so every key the caller did send is judged as before. There is no name list. Claude-Session: https://claude.ai/code/session_017ErfyP2Rx7XWHJA27QjyUi Co-authored-by: Claude <noreply@anthropic.com>
… no organization (#21682) Claude-Session: https://claude.ai/code/session_017ErfyP2Rx7XWHJA27QjyUi Co-authored-by: Claude <noreply@anthropic.com>
…opped-fields-platform-stamp
📓 Docs Drift Check2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 17 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin af9afeec9034ccc9a908f87a570fb1a629334d21 && git checkout af9afeec9034ccc9a908f87a570fb1a629334d21
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 16d241a6af00be4acce9883190fc333a5f560825 b7d2799c8d7d941362a5790bba5c56cf8186780c && git checkout -B drift-repro 16d241a6af00be4acce9883190fc333a5f560825 && git merge --no-ff b7d2799c8d7d941362a5790bba5c56cf8186780c
node scripts/docs-audit/affected-docs.mjs --json 16d241a6af00be4acce9883190fc333a5f560825 |
ACCEPT — PR #21701 at head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 37186085048 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
…opped-fields-platform-stamp
…h a valid instant (#21682) The readonly value shape check that landed on main judges every readonly value left on an insert row. The pin's fill of a readonly datetime was the string 'stamp', which that check refuses with invalid_date. It now fills a valid ISO-8601 instant. What the pin proves is unchanged: a middleware fill lands, and it is not reported. Claude-Session: https://claude.ai/code/session_017ErfyP2Rx7XWHJA27QjyUi Co-authored-by: Claude <noreply@anthropic.com>
ACCEPT addendum — PR #21701, patch round 1, head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 37191123449 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
… instead of a tracker number (stage 10) (objectstack-ai#21713) Part of objectstack-ai#20749 Clause-②: no Stage 10 of this card, and the first area of class (e): the test strings shipped under `packages/spec/src`, as ruled in `5902360492` on objectstack-ai#20513. This stage takes the whole `automation/` directory. Its 105 test-title and test-message literals carried 110 tracker ids citing 55 records. Each id now either states what its record decided, in words (form D), or is dropped where the title already says it. Text only: no assertion, fixture value, test count or code comment changes. ## Census at the base (`7e0066af7a`, the claim's base) Instrument: stage 9's `census.cjs` (md5 `6e42a45a926d375013c32d62f16a296e`, byte-identical), plus one added classification pass. A literal counts as a test title when its folded message is argument 0 of a `describe` / `it` / `test` call, `.each` / `.skip` / `.only` chains included. Everything else is an "other" string. Reference: the same instrument reads **1803 messages / 1919 ids in 425 files at `9b8c7f38d7`**, stage 9's reading exactly. Since then, objectstack-ai#21699 added 1 / 1 (`ui/component-props-unknown-members.pin.test.ts:143`) and objectstack-ai#21700 moved 3 / 3 (the two reader literals it re-anchored), which gives 1801 / 1917 at the base. | directory | files | titles msg / ids | other msg / ids | total msg / ids | excluded files | |:--|--:|--:|--:|--:|:--| | `data/` | 95 | 445 / 475 | 23 / 26 | 468 / 501 | | | `ui/` | 81 | 374 / 397 | 18 / 18 | 392 / 415 | `report.test.ts` 3 / 3 | | `api/` | 40 | 181 / 193 | 8 / 8 | 189 / 201 | | | `system/` | 34 | 128 / 138 | 26 / 27 | 154 / 165 | `job.test.ts` 4 / 4 | | (files directly in `src/`) | 30 | 117 / 119 | 1 / 1 | 118 / 120 | | | **`automation/`** (this PR) | 21 | 101 / 106 | 4 / 4 | **105 / 110** | | | `kernel/` | 36 | 92 / 96 | 10 / 10 | 102 / 106 | | | `shared/` | 21 | 73 / 81 | 12 / 14 | 85 / 95 | | | `contracts/` | 25 | 59 / 70 | 4 / 4 | 63 / 74 | | | `conversions/` | 9 | 34 / 34 | 0 | 34 / 34 | | | `security/` | 8 | 28 / 28 | 0 | 28 / 28 | | | `ai/` | 9 | 13 / 15 | 5 / 5 | 18 / 20 | | | `identity/` | 6 | 14 / 14 | 1 / 1 | 15 / 15 | | | `integration/` | 4 | 13 / 13 | 1 / 1 | 14 / 14 | | | `migrations/` | 2 | 9 / 12 | 0 | 9 / 12 | | | `marketplace/`, `meta-spelling/`, `studio/` | 5 | 7 / 7 | 0 | 7 / 7 | | | **total** | **426** | **1688 / 1798** | **113 / 119** | **1801 / 1917** | 7 / 7 | - **Excluded, in flight under this seat:** `system/job.test.ts` carries objectstack-ai#16292 (`:92`), objectstack-ai#14478 (`:471`), objectstack-ai#4667 (`:836`) and objectstack-ai#19184 (`:881`), and `ui/report.test.ts` carries objectstack-ai#20161 (`:233`), objectstack-ai#3916 (`:334`) and objectstack-ai#5013 (`:426`). All seven sit in titles. They wait for a later stage, after objectstack-ai#21703 and objectstack-ai#21702. - **Controls.** Lit, single line: `automation/approval.test.ts:135` reads one title with objectstack-ai#3508. Lit, multi-line: `api/discovery-environment-subset.pin.test.ts:63-66`, a `+` chain, reads as ONE message with its id on `:65`. Dark: the `// objectstack-ai#3508` comment at `automation/approval.test.ts:131` reads 0. Planted in a scratch copy of the head file: an id in a title reads 1 / 1, and an id in a comment reads 0. - **A wider pattern** (any `#` plus digits, so two-digit and six-digit numbers too) reads the same 105 / 110 in `automation/` at the base, and 0 / 0 at the head. - **At the head:** 1696 messages / 1807 ids in 405 files. `automation/` reads 0 / 0. Nothing else moved. ## How the area was chosen The directories are ranked by id count, and a stage takes whole directories up to about 100 ids. The four busiest each exceed that bound alone: `data/` (501), `ui/` (415), `api/` (201) and `system/` (165). The files directly in `src/` (120) are 20% over. `automation/` (110) is the busiest whole directory within about 10% of the bound, so it is this stage. The rule picked it before any card was read. Its 55 records (53 in this repository, 2 in objectui) were all readable in one pass. 54 answer 200. objectstack-ai#6362 answers 404, and its decision was read from its landing commit `b5404f496`. **Named for the next stages** (by directory, from the table): `data/` (about five stages, by subdirectory or file group; `data/driver/` alone is 52), `ui/` (about four), `api/` (two), `system/` (two), the files directly in `src/` (one), `kernel/` (one), `shared/` (one), `contracts/` with `conversions/` (one, 108), and `security/`, `ai/`, `identity/`, `integration/`, `migrations/`, `marketplace/`, `meta-spelling/` and `studio/` together (one, 96). The seven excluded ids join `system/` and `ui/` once their owners land. ## What each id became 38 literals (40 ids) now state a decision in words. 67 literals (70 ids) drop a citation the title already explains. Each record was read with its comments through REST, and where a record has no comments, from what landed. | record | ids | result | |:--|--:|:--| | objectstack-ai#3508 | 2 | `APPROVER_VALUE_BINDINGS`: "an approver value is picked from the records the engine resolves". `APPROVER_VALUE_SOURCES` (the follow-up): "where each picker finds its candidates, published on the wire". | | objectui#2955 | 1 | "for the decision dialog to render and enforce": both decision entry points collect the typed outputs, and `required` is enforced. | | objectstack-ai#3810 | 1 | "names the match-everything-write hazard": a filter emptied by interpolation matches every row, and the node is refused instead. The test pins the words `match-everything write`. | | objectstack-ai#4001 | 13 | "strict as of objectstack-ai#4001 批 9" becomes "an unknown key is refused, not stripped" (5 titles). Also "refused, not stripped", "an unknown key is refused, per shape" and "the unknown-key gate". Dropped from 5 titles that already read "unknown keys are rejected, not stripped". | | objectui#2670 | 1 | "so the flow designer renders it as a template": the designer's loop and region rendering reads this marker. | | objectstack-ai#4396 | 2 | "a function that writes says so; pure is the default", and "the authoring surface where a function declares its effect" (landed `eb4204b`). | | objectstack-ai#4697 | 2 | `defaultValue`: "a declared variable is bound on every path" (ruling A). Dropped once. | | objectstack-ai#3896 | 3 | "outputSchema retired: declared, never validated" (the audit close-out's reason, as `flow.zod.ts`'s tombstone records it). Dropped twice. | | objectstack-ai#4247 | 1 | "maxRetries — one default, and no zero-attempt “retry”" (landed `a648e96`). | | objectstack-ai#16134, objectstack-ai#15713 | 7 | "a region node reusing a top-level id is refused — one node-id space now spans every region" (ruling, batch 61). Dropped from 5 titles that state uniqueness. | | objectstack-ai#9205 | 5 | "template reference — notify content localized through an email template" (the ruled emailTemplates route). Three titles say "the template path" where they said "pre-objectstack-ai#9205". Dropped once. | | objectstack-ai#7086 | 1 | "severity — the closed info \| warning \| critical vocabulary" (the enum route). | | objectstack-ai#4415 | 3 | "FlowNodeSchema parses its own regions" (ruling 2026-08-07, direction 1). Dropped from 2 titles that already say it. | | objectstack-ai#4347 | 1 | "collectFlowGraphs — every region is walked, not only the top level" (landed `31e0be9`). | | objectstack-ai#4401 | 2 | "FLOW_REGION_SLOTS, the one declaration of where regions live" (landed `4bfd455`). Dropped once. | | objectstack-ai#4414 | 1 | "`condition` is pointed at the out-edges, NOT given the one-edit rename" (one working routing model, landed `5293114`). | | objectstack-ai#15429 | 1 | "taking every true branch must be declared" (ruling item 2: explicit `inclusive`). | | objectstack-ai#14149 | 3 | "every entry older than the value role" (ruling A: a value-role CEL slot on `assignment`). Dropped twice. | | objectstack-ai#19938 | 4 | "the CRUD `fields.*` value slots added exactly two rows". Dropped three times. | | objectstack-ai#15572 | 3 | "predicateSlotRefusal — a predicate slot holds bare CEL text", and "the other two doors refuse it". Dropped once. | | objectstack-ai#15662 | 1 | "structuralConditionRefusal — a structural condition is CEL text or an expression". | | objectstack-ai#15792, objectstack-ai#15807 | 4 | "REFUSES an `ast`-only envelope — admitted at first, refused once an evaluated slot required a `source`". Dropped from 2 titles that state the rule. | | objectstack-ai#17493 | 3 | Table row "a blank string — blanks are refused" (ruling A). Dropped twice. | | objectstack-ai#14945 | 4 | "EndConfigSchema — the `end` node contract: it may refuse the run with a message" (ruling 2′). Dropped three times. | | objectstack-ai#15617 | 4 | "`failed` is the fold INCLUDING what a delegating node rolled up from its child — it answers what the run caused" (ruling option 1). Dropped three times. | | dropped only | 36 | objectstack-ai#3196, objectstack-ai#3266, objectstack-ai#4158, objectstack-ai#4277, objectstack-ai#4343 (2), objectstack-ai#4389, objectstack-ai#4525, objectstack-ai#4738, objectstack-ai#4964 (2), objectstack-ai#6758, objectstack-ai#7085, objectstack-ai#9106, objectstack-ai#12278, objectstack-ai#14964, objectstack-ai#15430, objectstack-ai#15646 (3), objectstack-ai#16752, objectstack-ai#17306, objectstack-ai#17852, objectstack-ai#18102, objectstack-ai#18112 (2), objectstack-ai#18847, objectstack-ai#19151, objectstack-ai#19961 (4), objectstack-ai#20316 (2): each title already states the pinned decision. For objectstack-ai#4988 and objectstack-ai#6414, the two expect messages already say what was retired. | | objectstack-ai#6362 (404) | 1 | Dropped. The title "PRESERVES all seven envelope keys — measured, not assumed" carries the decision recorded in `b5404f496` (`webhook` was measured, and all seven keys survive). | ## Readers - **Test-name filters:** none. A tracked-tree search for `-t` and `--testNamePattern` finds only `packages/qa/dogfood/README.md:142` (`-t "owner-scoped"`), which is unrelated. - **Snapshots:** none. `automation/` has no `__snapshots__` and no `toMatchSnapshot`. - **Titles by substring:** every old title, plus a window around each id (250 needles), was searched across the tracked tree outside its own file. No gate, doc or script matches one. The hits are other files' own titles with the same words: `identity/`, `security/` and `automation/` siblings, a later stage's lot. There are also two code comments in `flow.zod.ts` and `flow-function.zod.ts`, which belong to the comment lane. - **Twin tables, not readers:** `packages/lint/src/validate-expressions.test.ts:4442/4445` and `packages/services/service-automation/src/decision-branch-expression-absent.test.ts:61/64` repeat the `flow-decision-branch-expression-absent` table's row names. Nothing compares them mechanically: the "same table" parity is prose in the headers, and it covers assertions, not names. They are outside this stage's surface (see Acceptance notes). ## Text-only proof A scratch tool (`textonly10.cjs`) compares base and head file by file on three legs: 1. **Skeleton:** the full AST, with string pieces masked. It must be identical. 2. **Comments:** every comment, byte-equal. 3. **Strings:** each string leaf that changed must sit in a test-call title position, or on one of the 4 declared lines (`flow-decision-branch-expression-absent.test.ts:63` and `:66`, table `name` values that feed `$name` titles; `sync-retirement.test.ts:120` and `:158`, expect messages). It must carry a tracker id before and no `#` plus digits after. - **Result:** 21 of 21 files SAME, 105 changed (101 title, 4 declared), on all three legs. - **Diff hunks:** exactly the 105 planned lines, with every file keeping its line count. - **Controls (10 of 10 as predicted, on scratch copies, each anchor hit once):** identifier rename DIFF; numeric literal DIFF; comment edit COMMENT DIFF; a non-title string with an id VIOLATION; a rewritten title given a new id VIOLATION; a title that was id-free at base edited VIOLATION; one title reverted to base SAME (104 changed); a declared string keeping an id VIOLATION; an undeclared expect message changed VIOLATION; a title re-split into a `+` chain DIFF. **Test counts:** the 21 files run at the base (in a separate base worktree) and at the head: 801 / 801 tests on both sides, with the same count and status sequence per file in 21 of 21. 560 full test names change, and each equals the base name with the planned replacements applied. ## Changeset: `skip-changeset` Measured, not assumed: - `npm pack --dry-run` of `@objectstack/spec` lists 2068 files, under `files[]` (`dist`, `src/**/*.zod.ts` and the rest). 0 of the 21 touched files are in it, and 0 `*.test.ts` at all. The control `src/automation/flow.zod.ts` is in it. - In `dist/`, three new phrases and three old ones each read in 0 files. The control `A predicate slot holds BARE CEL TEXT` reads in 2. So this PR publishes nothing, and no changeset is added. ## Verification (at `f3dc3fab03`) - `pnpm turbo run build` over all packages: 71 / 71. - `@objectstack/spec`: `vitest run --project local`, 612 files and 18185 passed, 1 todo. `typecheck` exit 0, including `check:test-typecheck`, whose program holds all 21 touched files. - **Gates:** `dispatch-gates --commands` derived 79 families, and all 79 exit 0. `--ran` reconciles: 79 derived, 79 run, 0 NOT-MEASURED, 0 UNRUN. - **ESLint, a proven narrowing:** `--no-inline-config` over the 21 files, 0 errors and 0 warnings. The population comes from ESLint's own config: 21 configured, 0 ignored. No `parserOptions.project` or `projectService`, so no untouched file's verdict can move. - `check-governed-merges --test`: NOT governed, 210 changed lines. ## Acceptance notes - **Twin row names in other packages:** the lint and service-automation copies of the decision-branch table keep their `the objectstack-ai#19961 shape` and `the objectstack-ai#17493 control` row names, and their twin `describe` titles keep their ids. The lint copy is this card's own later share (the `packages/lint` test strings). The service-automation copy belongs to that package's lane. - **Code comments still carry ids** in these 21 files (for example `approval.test.ts:56`, `:69` and `:131`). They are the comment lane's, untouched here. - **`origin/main` moved** three commits past the base before this PR opened (objectstack-ai#21701, objectstack-ai#21707, objectstack-ai#21706). None touches `packages/spec`, so nothing was merged. --- _Generated by [Claude Code](https://claude.ai/code/session_01T9u38rswFp5Rw8DswRUReJ)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #21682
Clause-②: no
What changes
This applies on a walled posture with the real
@objectstack/organizationsruntime mounted:organization_idanswered 201 withdroppedFields: [{ object, fields: ['organization_id'], reason: 'readonly' }]. The caller never sent that key.droppedFields. The row is still stored in the active organization.The fix sits where triage routed it:
ObjectQL.insert's caller-payload snapshot inpackages/objectql/src/engine.ts.insert's entry, before the middleware chain runs, the engine records the keys each row carries. The record is keyed by the row object (callerKeySets, line 2094; called at line 12879).suppliedPerRow(line 12983) now keeps only those keys (callerSuppliedRow, line 2113).The console reading (H4), measured first: the console warns, so this is the p2 raise reading
objectui at its pin
ab187972159583b595facdcae3c73b50f6f312e9(.objectui-sha), read from a shallow clone that has since been deleted:packages/data-objectstack/src/index.ts:ObjectStackAdapter.createcallsnotifyDroppedFields('create', resource, result, id, data)on every create.notifyDroppedFields(line 3767) runs the entries throughwithoutNoOpDrops(valid, sent, stored)(line 2794). That filter keeps such a field:if (!Object.prototype.hasOwnProperty.call(sent, f)) return true;. It drops only a field whose sent value equals the stored value.packages/app-shell/src/providers/AdapterProvider.tsxline 80 subscribesonWriteWarningand passes sonner'stoasttoemitWriteWarning. For any non-empty list,emitWriteWarning(writeWarningToast.ts) callssink.warningwith the title "Saved — but some fields did not take effect" and the line "Read-only, so it did not take effect: " followed by the field's label.dataSource.create:plugin-form'sObjectForm.tsx:1281,ModalForm.tsx:660,DrawerForm.tsx:574,SplitForm.tsx:399,TabbedForm.tsx:501andWizardForm.tsx:978, plusObjectCalendar.tsx:1190and the grid'sImportWizard.tsx:1931.withoutNoOpDrops,sameWireValueandstableStringifyverbatim and ran them on the card's wire shape:[{ object: 'qa_ledger', fields: ['organization_id'], reason: 'readonly' }];{ name };organization_id.toast fires: true).apps/console/src/components/FormPage.tsxposts its internal submit with rawfetch(line 1375) and never readsdroppedFields.So an ordinary walled create from the console's record forms shows the amber "Saved — but some fields did not take effect" toast, naming Organization. That is #8093's symptom, on create. The seat raises the grade on this reading.
Mechanism, measured (Partition 2)
251a7dd4b4,inserttooksuppliedPerRow(line 12905) inside the callback it handsexecuteWithMiddleware(line 12828). By then every middleware had already run.organizations-plugin.ts:344) fills an absent or emptyorganization_idin place, so the snapshot recorded the fill as a caller key.readonly: true, and reported it. Further down, the driver'sinjectTenantOnInsertfilled the column again from the context. That is why no stored data was wrong.[{ fields: ['organization_id'], reason: 'readonly' }]for both a member and a platform administrator.a0fdc564eb) narrowed the update report by a provenance fact (a payloadidequal to the bound row), not by a field name.suppliedValuessnapshot before its chain (engine.ts:14054, chain at line 14200). Insert now matches it for keys.!Array.isArray(opCtx.data)). So acreateManyrow carries no fill and never reported one. The driver fills the column for it.single) there is no fill at all.opCtx.dataare two:@objectstack/organizationsMiddleware A, fororganization_id(single row only);@objectstack/plugin-securitystep 3.5, forowner_id(every row,security-plugin.ts:3230).next(), or (the anonymous public-form branch) delete keys rather than fill them.owner_idis notreadonly, so it never reacheddroppedFields. It did reach the referential-integrity check (see Behaviour notes).droppedFieldsis empty, which covers both fills. The engine pins use an arbitrary author column, so no name is involved.Pins
These are triage's three, on a walled boot built from the real
@objectstack/organizationsruntime, the realSecurityPlugin, a realObjectQLandSqliteWasmDriver. The block is added to #21666's harness inpackages/plugins/organizations/src/create-explicit-organization-wall.test.ts. The drops are collected throughonFieldsDropped, the listener the REST create doors (createData,createManyData) answerdroppedFieldsfrom.organization_idreports no dropped field and is stored in the active organization. Run for a member and for a platform administrator.organization_iditself, sent explicitly, is reported;created_by, sent beside the fill, is reported alone.createManyand thesingleposture are unchanged:single, booted without the runtime, a create naming no organization reports nothing, and one naming an organization still reports it.There are three engine pins in
packages/objectql/src/engine-insert-static-readonly-strip.test.ts, beside the existing exemption "a beforeInsert hook's OWN stamp survives":readonlycolumn lands and is not reported;Reverse verification
Run from committed state, with HEAD
81ad21efc1carrying the fix:scripts/ablation-replace.mjschangedcallerSuppliedRow(row, callerKeysPerRow[i])tocallerSuppliedRow(row, undefined). That restores the full post-middleware copy, which is the pre-fix snapshot.16159cd42cbfto9fae7a2c1837.@objectstack/objectqltosrc, and the engine test imports./engine.js.expected undefined to be 'stamp';expected [ undefined, undefined ] to deeply equal [ 'stamp', 'stamp' ]). The rewritten-value case stayed green.git checkout HEAD -- packages/objectql/src/engine.ts, run by the tool's trap. Blob after restore16159cd42cbfequals HEAD, andgit diff HEADis empty.Behaviour notes
assertReferencesResolvereadssuppliedPerRowto decide what the caller sent. Its docblock already scopes it to caller-supplied keys and namesowner_idandorganization_idas stamps it must not judge.lookupwith a dangling id on a create that did not name it.VALIDATION_FAILED. After: created.owner_idfill: its stamp was checked as if the caller had sent it. I did not measure a principal that the check actually refused for it.organization_idthat Middleware A fills. It is still reported, as before. The update path's snapshot also captures values before its chain; this change aligns the KEY set only.Tests (at
47cbb883b3)The test runs were taken at
47cbb883b3, whose code equals the fix commit81ad21efc1. The merge oforigin/main(994ec65025) brought in only aservice-analyticstest andscripts/pm/git-history.mjs, neither inobjectqlnororganizations, so the suites were not rerun after it. Every run went throughscripts/pm/os-verify-lock.shwith--maxWorkers=2.Before the fix, with the pins at
e95548845cover the unmodified engine:pnpm --filter @objectstack/organizations exec vitest run src/create-explicit-organization-wall.test.tsgave 3 failed and 18 passed. The received value was[{ fields: ['organization_id'], object: 'qa_ledger', reason: 'readonly' }].After the fix:
pnpm --filter @objectstack/objectql exec vitest run src/engine-insert-static-readonly-strip.test.ts: 21 passed (18 existing, 3 new);pnpm --filter @objectstack/objectql exec vitest run --project local(the package'stestscript): 371 files, 7450 tests passed;pnpm --filter @objectstack/organizations test: 9 files, 130 passed (123 existing, 7 new);pnpm --filter @objectstack/objectql typecheck: exit 0.check:test-typecheckreports OK, with 40 files, 234 errors and 65 signatures held in the ledger, unchanged;pnpm --filter @objectstack/organizations typecheck: exit 0, test layer 0 errors.Builds:
turbo run build --filter='@objectstack/organizations^...': 27 of 27 tasks;objectqlandorganizations, rebuilt for the gates that readdist/(the fix is present indist/index.mjs);--filter='!@objectstack/docs'build, 72 of 72 tasks (71 cached), forcheck:dual-build-cjs-loads.Lint, a declared narrowing. I ran
eslint --no-inline-config --format jsonon the 3 TypeScript files this diff touches: 3 files linted, 0 errors, 0 warnings, none ignored (--print-configexits 0 for each). Why the narrowing excludes nothing:eslint.config.mjsenables no type-aware linting (its own note at lines 327-328: noparserOptions.project, no typed rules);scripts/slot-lookup-baseline.jsonandscripts/query-options-erasure-baseline.json, which this diff does not touch.So this diff cannot move a verdict on an untouched file. The repo-wide
pnpm lintstays with CI.Gates
The final run was at
994ec65025, after the merge.node scripts/pm/dispatch-gates.mjs --commandswas run with no paths. It derives 70 commands from the 4-path change set against merge base38bef8cf9, the same 70 as before the merge.dispatch-gates --ranreports "70 derived, 70 run, 0 NOT-MEASURED, 0 UNRUN".check:dual-build-cjs-loadsexited 3 (PREREQUISITE NOT MET, 39 packages withoutdist) in the first run at47cbb883b3. After the full build it exited 0, and it exited 0 again at994ec65025.check:nul-bytesOK (10060 files, no control bytes);check:engine-double-contractOK (936 pinned);check:test-source-aliasOK;check:cross-package-test-inputsOK;check-adr-0087-registration(1 non-breaking changeset);check-changeset-no-major(no major);check-empty-changesetOK;check:type-check-coverageOK.check-closing-target-claim,check-partof-closing-keywordandcheck-single-claim-paths.check-partof-closing-keywordwas also run on this body withPR_BODYset, and exited 0.Acceptance notes
These are noted, not filed: none is a reproducible defect, a contract violation or an authoring trap that this card measured.
injectTenantOnInsertgive the same value. Before, the fill was stripped and the driver filled the column again. Now the fill is kept.FormPage.tsxdrops the report. Its internal submit posts with rawfetchand never readsdroppedFields, so a strip on that path is silent. That is at objectui pinab187972; no PR or person will carry it.withoutNoOpDropskeeps a reported field the caller never sent. With this change the server no longer reports a middleware fill, so that branch no longer fires for one.Generated by Claude Code