Repository navigation
Description
qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB
Release sweep v18.5.0, round 1, record R-CUST: the fixes the waiting customers will run first (HotCRM O2C and PSA, and a downstream CRM). Dispatched by qa#3 (seat #33014). Wave anchor #33761. Labels: qa-run only.
Selector line: R-CUST (6 cards). These are the six named cards of #33761 §Plan. Each has a live leg on a booted app, the relevant clauses of the checklist items whose source[] cites its PR's changed files, and one off-clause probe. The title counts the six cards; the item rows are listed below them.
Environment fingerprint
-
Framework: objectstack-ai/objectstack
main@a557fa386bc3(2026-11-15 09:05Z). The tree is the same as record R-P0: the console was built in-tree withpnpm console:build. -
Fixes: all six cards' fixes are in the pinned history.
-
App: scratch copies of
examples/app-showcase(cp -r, with packages, node_modules and ui symlinked to the tree), plus QA fixture objects, hooks, positions and seeds in their ownsrc/qa-cust*.ts.- Compiled inside the copy and booted with
objectstack dev --seed-admin --no-compile --no-watch, its ownOS_PORT, its own file DB and its ownOS_HOME. Ports 41100–41104 and 41130–41142. - Walled
isolatedboots used the posture env vars by hand;auth/configreadtenancyPosture: isolated, degradedTenancy: false. - The managed environment used
OS_CLOUD_MANAGED=1 OS_AUTH_ADMIN=false.
- Compiled inside the copy and booted with
-
Runner: the ORDER-1 runner thread for qa#3 with two card runner subagents (effort high), CUST1 and CUST2, and one independent verify agent (RUNNER rule 7) for the FAIL.
-
Timestamps: shared setup 09:38–09:56Z (the same as R-P0). Tests: CUST1 09:46–10:10Z, CUST2 10:13–10:36Z, verify 10:31–10:41Z.
Scope and verdicts, one row per card
| card | what | verdict |
|---|---|---|
| #33250 | controlled_by_parent writeRequiresMasterRead: a reader of the master inserts, updates and deletes detail rows under the detail's own grants |
PASS |
| #33238 | renamedFrom position holders carried on a hot install or upgrade |
PASS |
| #33214 + #33213 | localized hook refusals on handler hooks; the duplicate refusal in the writer's locale, naming a composite unique index's fields | PASS (both) |
| #33206 / #33207 | org-scoped seed: an organization in the seed write context, people resolved through membership, a refused probe reported (BREAKING in walled mode) | FAIL (the owner_id: NAME leg) |
| #33181 | pending SSO-only users on a managed environment: add, CSV import, password doors, ban | PARTIAL (2 legs blocked by fixture) |
| #33512 | one-hop cross-object analytics where on the engine-aggregate path, and its 1000-parent refusal |
PASS |
Checklist items driven (only the clauses each fix touches; the others are skipped, out of scope)
| item | rev | card | clauses driven | verdict |
|---|---|---|---|---|
| access-security.parent-and-organization-write-guards | 7 | #33250 | acc[0], acc[2] (cbp leg), acc[3], neg[0]; acc[1] skipped (walled leg not touched) | PARTIAL |
| records-forms.object-hook-lifecycle | 12 | #33214 | acc[6], neg[0] | PARTIAL |
| records-forms.field-unique-enforcement | 14 | #33213 | acc[0]–[3], neg[0]–[2] | PARTIAL |
| api-backend.error-sentences-and-unique-violation-wire-code | 9 | #33213 | acc[0], acc[2] | PARTIAL |
| platform-core.seed-mode-matrix | 8 | #33206/#33207 | acc[0], acc[5], neg[0] | PARTIAL |
| platform-core.seed-integrity | 7 | #33206/#33207 | acc[2], acc[3], neg[1] | PARTIAL |
| identity-auth.admin-lifecycle-operations | 12 | #33181 | acc[0], acc[9], neg[1] | PARTIAL |
| identity-auth.identity-import-wizard | 4 | #33181 | acc[3], acc[5], neg[2], neg[3] | PARTIAL |
| identity-auth.implicit-account-linking-ownership | 5 | #33181 | acc[4]: blocked{fixture, no objectstack-cloud OAuth provider locally} |
BLOCKED |
| dashboards.cube-query | 4 | #33512 | acc[1] and neg[0] (engine path, by analogy on a QA cube), acc[3] | PARTIAL |
Every driven clause passed except the one blocked. Each PARTIAL means "the clauses this fix touches all pass, and the rest were out of scope this round", not a gap found.
No exact citer. No checklist item cites the changed files for #33238 (position-renamed-holder-carry.ts) or for most of #33181 (pending-sso-users.ts, admin-ban-endpoints.ts, user-session-admission.ts, pending-sso-marker.ts, user-ban-write.ts, environment-user-host.ts). Those cards were judged on their own acceptance (see Parked-on).
Per-clause verdict tables
Each card's own acceptance table and each item's clause table, with text oracle evidence, follow as two comments:
- Comment 1 (
record-CUST-clauses-1.md): runner CUST1, cards controlled_by_parent: per-object opt-in so read on the master is enough to insert and update the detail under the detail's own grants (ownerMayEdit covers owner update only; HotCRM Order to Cash blocked) #33250, positions: carry renamedFrom holders on a hot package install or upgrade too, not only at kernel boot #33238, hooks: the refusal catalogue (refusals) cannot translate a handler-authored hook's refusals, and holds one sentence per code — a TS hook has no way to refuse in the user's language #33214 and data: the duplicate refusal ("A record with this value already exists") ignores the request locale and never names the fields of a multi-column unique index #33213. - Comment 2 (
record-CUST-clauses-2.md): runner CUST2, cards seed: a seed write carries no organization in its execution context, so a system hook that pins the writer's organization computes nothing for seeded rows #33206/seed: on an organization-scoped load a reference to sys_user (owner_id: NAME) never resolves — the reference probe adds organization_id to a tenant-less object and swallows the refusal #33207, plugin-auth: pending, SSO-only users on a managed environment — add and CSV import with position, permission sets and manager, refused by every password door, with a host seam on create, deactivate and reactivate #33181 and feat(service-analytics): serve a one-hop cross-object where on the engine-aggregate path #33512, plus the rule-7 verify pass of the FAIL.
Tier 1. All pins green at --maxWorkers=1, each with its layer named.
- CUST1:
- plugin-security, engine: 43 + 87 + 35;
- spec: 26 + 97 + 43;
- lint: 40 + 12 + 241;
- runtime: 38 + 10;
- cloud-connection: 6;
- verify (HTTP): 2;
- cli: 10 + 31;
- objectql (engine): 61;
- rest (real ObjectQL on better-sqlite3): 37;
- types: 63;
- the dogfood HTTP pins of the cited items.
- CUST2:
- runtime
seed-org-scoped-references.integration26: engine, but with a metadata double (see the FAIL); - metadata-protocol 7;
- plugin-auth (plugin unit): 5 files, 167;
- platform-objects 7;
- service-analytics: 6 files, 160;
- rest (engine + SecurityPlugin): 4 files, 50;
- client 21.
- runtime
Failures
#33206 / #33207 · card acceptance 2c · owner_id: NAME resolves through membership: FAIL
Repro (reproduced 5 times by the card runner, then CONFIRMED by an independent verify agent that did not read the first runner's evidence, on 2 single and 2 walled fresh DBs plus an engine-layer contrast):
- In an app config object that does not declare
owner_id(the platform injectsowner_idas a lookup tosys_user, asGET /api/v1/meta/object/<obj>shows), seed a row{name:'Y', owner_id:'<person name>', rep:'<person name>'}, whererepis a declaredField.user(). - Boot single, or boot walled
isolatedandPOST /api/v1/auth/organization/create. GET /api/v1/data/<obj>as admin.
- Expected, per
content/docs/data-modeling/seed-data.mdx:473 and the 33207 changeset:owner_idis handled likerep. It holds the person's id, or is NULL plus a "not a member" error. - Actual:
owner_idholds the literal name ("Vera Verify","Dev Admin"), with no log line. On the same rowrepresolves ("JfVslg3dvTAEWWyp"), and an object that declaresowner_idresolves it. - Self-check: the same name resolves on
rep, onrep_lkand on a declaredowner_id. A first-boot'Dev Admin'that cannot exist yet was ruled out by a reboot leg.
Disposition: product defect.
- Mechanism:
seed-loader.tsresolveObjectDefinition(about :1370) prefers the authored metadata definition, which has no injectedowner_id, sobuildDependencyGraph(about :1283) never makes it a reference. The PR's pin stubs metadata with the engine-enriched definition, so it cannot see this. - Not a regression: the same code is at
181ad7d4. It does contradict the card and the 18.5.0 changeset and docs. - Customer impact: HotCRM o2c
invoice,paymentandbilling_milestonedo not declareowner_id. - Card draft:
out/card-CUST-3.md. - Other legs of this card all pass live:
- the hook sees the load's organization;
- the walled narrowing;
- declared people lookups resolve through membership, and outsiders are never borrowed;
- a refused probe is reported;
- target scoping.
- Docs side (acceptance 5): the docs match the walled behaviour except two rows. The
owner_idrow overclaims (this FAIL). ThetenantFieldrow is stale since fix(metadata-protocol): seed reference probe filters on the target's resolved tenant column #33409 and fix(metadata-protocol): seed replay matches and stamps an object on its declared tenant column #33550 (out/card-CUST-5.md).
No other FAIL. Security findings: none.
Derived verdicts and gaps
-
plugin-auth: pending, SSO-only users on a managed environment — add and CSV import with position, permission sets and manager, refused by every password door, with a host seam on create, deactivate and reactivate #33181 PARTIAL. Every leg driven live passes:
- add (201
idp_pending, no account, grants and manager set); - re-add, held email and bad-grant refusals with rollback;
- CSV import, with second-pass manager linking and no duplicates;
- password doors 409 (
set-user-password,/reset-passwordwith a real token); - ban without the admin plugin (sessions revoked, 403
BANNED_USER, unban, expiry); - managed refusals of create-user, import-users and invite (409);
- non-admin 403.
Two legs are blocked{fixture}:
- A wired
environmentUserHost. It is an AuthPlugin constructor option with no env or config door, soos devcannot wire one; the host seams are covered by the plugin-unit pins. - The first platform-SSO sign-in that binds the pending row. There is no
objectstack-cloudprovider locally; covered by theimplicit-account-linkingpin.
set-initial-passwordand the pending-session refusal have no local door that reaches them, so they are pins only. - add (201
-
positions: carry renamedFrom holders on a hot package install or upgrade too, not only at kernel boot #33238 was driven on the install-local door and the per-item publish door. The brief's
POST /api/v1/packagescannot carry positions, because ManifestSchema has nopositionskey.
Off-clause probes (RUNNER rule 8)
One probe per card, about 47 minutes in total. Three probe findings are drafted as cards; the rest found nothing.
| card | probe | finding |
|---|---|---|
| #33250 | attach on the opted-in detail; unknown-master existence oracle | none: no oracle, identical 403 bodies |
| #33238 | the opposite door: an active save instead of draft + publish | card-CUST-1: a renamedFrom position saved active through the metadata save door does not carry its holders until restart, so they lose that position's access meanwhile. Low/medium, fail-closed, not security. Related to #33656, a different door. |
| #33214 | Accept-Language boundaries (q-list, bare zh, ?locale=, de-DE, ja-JP); undeclared computed reason |
none: 500 with the hook, code and reason logged |
| #33213 | the opposite doors (action door, updateMany) | card-CUST-2: the localized duplicate sentence reaches only /data; the action door and updateMany answer the English developer sentence. Low, pre-existing. |
| #33206/#33207 | person by email on a name-keyed lookup; the single posture | none; the single posture is the FAIL's control |
| #33181 | the opposite posture (not managed) | none: both new doors answer 409 "not cloud-managed" |
| #33512 | the cap boundary, and the opposite path | Exactly 1,000 parents is served and 1,003 is refused (as documented). card-CUST-4: the native SQL path selects an orphan detail under $ne (6/1500) where the engine path and /data do not (5/500), so a time bucket changes a widget's total; contradicts the PR's "under $ne the two strategies agree". |
Two more observations were not filed (both are in the clause tables):
- On a walled boot the organization-create replay runs before the founder's
sys_memberrow exists, so a new organization's own replay can never name any person. Noted in card-CUST-3. - In isolated posture, an app seed dataset on
sys_usermakes the per-org replay fall back.
Card drafts (extraction)
| draft | card | finding | severity |
|---|---|---|---|
out/card-CUST-3.md |
#33207 | the injected owner_id is not resolved by the seed loader |
the FAIL |
out/card-CUST-1.md |
#33238 | an active-save position rename is not carried until restart | low/medium |
out/card-CUST-2.md |
#33213 | the duplicate sentence is English on the action door and updateMany | low |
out/card-CUST-4.md |
#33512 | native vs engine $ne orphan parity |
low/medium |
out/card-CUST-5.md |
#33207 | the seed-data.mdx tenantField row is stale |
docs, low |
Each draft lists its dedupe searches. The seat replaces #RECORD.
Parked-on #33761 (checklist accuracy, coverage gaps)
- No item drives controlled_by_parent: per-object opt-in so read on the master is enough to insert and update the detail under the detail's own grants (ownerMayEdit covers owner update only; HotCRM Order to Cash blocked) #33250's opt-in. No clause names
writeRequiresMasterRead, its admit side, the 403-vs-404 split by door, or the save-door parse refusals.access-security.parent-and-organization-write-guardscovers only the unamended edit question. It needs a revision or a new item. - No item covers the
renamedFromholder carry, at boot or hot (positions: carry renamedFrom holders on a hot package install or upgrade too, not only at kernel boot #33238). - No item asserts a handler hook's
refusals(reasons, params, translation) or the duplicate refusal's locale. Every exact citer asserts English only.records-forms.object-hook-lifecycleautomated.refcould add verify'sharness.hook-refusal-door.test.ts. records-forms.field-unique-enforcementacceptance[0] is stale. It still says the sentence is generic for a composite of two authored columns. Since fix(objectql): the duplicate refusal reads in the writer's locale and names a declared composite unique index's fields #33348, a declared unique index whose fields all carry labels is named, in the writer's locale.- No exact citer for the plugin-auth: pending, SSO-only users on a managed environment — add and CSV import with position, permission sets and manager, refused by every password door, with a host seam on create, deactivate and reactivate #33181 files listed above, nor for feat(service-analytics): serve a one-hop cross-object where on the engine-aggregate path #33512's
cross-object-where.ts,objectql-strategy.tsanddashboards.mdx. packages/plugins/plugin-security/src/security-plugin-cbp-relation.tshas no exact citer.checklist-select file:falls back to the directory and returns a long list.- The PR fix(metadata-protocol)!: an organization's seed load resolves people through its membership, reports a refused reference probe, and writes as that organization #33222 pin uses an enriched metadata double.
runtime/src/seed-org-scoped-references.integration.test.tsservesengine.registry.getObject()as the metadata definition. This is also the TO of card-CUST-3.
Activity
objectstack-fleet commentedon Nov 15, 2026
qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB
Clause tables 1 of 2: runner CUST1, cards #33250, #33238, #33214 and #33213 (QA run · R-CUST @ a557fa3; record #33785)
Start 2026-11-15T09:46Z. Ports 41130–41139. Scratch app: /home/user/qa1/CUST1/ws/examples/app-cust (cp -r of examples/app-showcase, ws/packages, ws/node_modules, ws/ui symlinked to the shared tree; own
objectstack compile --update-access-matrixinto the scratch dist only; OS_HOME=/home/user/qa1/CUST1/home). QA fixtures added in src/qa-cust.ts + src/qa-cust-helper.ts (objects showcase_qa_contract/_milestone/_step/_weekly_cost/_plan/_plan2, sets qa_cbp_reader/blind/hidden/looker, hooks qa_plan_gate/qa_plan2_gate, zh-CN translations). Every boot--no-compile --no-watchon the scratch copy. No shared-tree file written; no GitHub writes.CARD #33250 — controlled_by_parent
writeRequiresMasterRead· fix PR #33369 (df9fe94) · PASSenv: scratch app port 41130, db file:/home/user/qa1/CUST1/cbp/data.db (booted twice: second boot after adding enable.files to both details). Fixture: master showcase_qa_contract (OWD private, admin-owned C1); showcase_qa_milestone = cbp detail with
sharing.controlledByParent.writeRequiresMasterRead: true; showcase_qa_step = identical cbp detail WITHOUT the opt-in (CONTROL). Personas (admin create-user + change-password, set granted by POST /data/sys_user_permission_set): rdr = qa_cbp_reader (contract read+viewAll, CRUD on both details); blind = qa_cbp_blind (no contract grant, CRUD on details); hidden = qa_cbp_hidden (contract allowRead without View All → admin's private C1 hidden; CRUD on details); looker = qa_cbp_looker (contract read+viewAll, milestone READ only).Card acceptance driven live:
access-security.parent-and-organization-write-guardsrev 7 (cites explain-engine.ts and security-plugin.ts, both changed).access-security.record-access-explainrev 4 also cites explain-engine.ts but its clauses are read-visibility/panel clauses, not touched by a write-gate change: not driven. security-plugin-cbp-write-gate.ts / -cbp-relation.ts / validate-security-posture.ts have no exact citer (the dispatcher list for cbp-relation is a directory fallback). Brief candidates owd-sharing-matrix / rls-both-sides do not cite any changed file exactly: not driven.access-security.parent-and-organization-write-guards · rev 7 · PARTIAL (clauses touching this fix all pass; acceptance[1] walled leg not touched → skipped)
CARD #33238 — positions
renamedFromholders carried on a hot install / upgrade · fix PR #33245 (4a0c480) + completing PRs #33473 (2cafe3e), #33448 (e3f0cfd), #33304 (7adb1b5) · PASSenv: scratch app port 41131, db file:/home/user/qa1/CUST1/pos/data.db, OS_HOME=/home/user/qa1/CUST1/home (install-local ledger landed in /home/user/qa1/CUST1/home/installed-packages; no repo tree touched). Package com.qa.posren sent inline to POST /api/v1/marketplace/install-local (the body
os package installsends): v1 = object qaposren_doc + sets qaposren_reader (read+create) / qaposren_audit (read) + positions qaposren_rep→reader, qaposren_auditor→audit (CONTROL); v2 = qaposren_sales_rep {renamedFrom:['qaposren_rep']} + the same CONTROL. Holders pu1 (qaposren_rep), pu2 (qaposren_auditor) via POST /data/sys_user_position.Card acceptance driven live:
CARD #33214 — handler hooks refuse by declared code/reason with params, translated per request locale · fix PR #33641 (53f5a4c) · PASS
env: scratch app port 41132, db file:/home/user/qa1/CUST1/i18n/data.db (shared with #33213, one boot). Fixture hooks (src/qa-cust.ts), same
refusalson both: CREDIT_LIMIT {409}, VALIDATION_FAILED {message, params:['state'], reasons plan_locked "The plan is {{ state }} and can no longer change." / name_reserved}; zh-CN bundle hooks.HOOK.refusals.… incl. reasons. qa_plan_gate (inline handler, lowered by compile to a js body: artifact shows body + handler) on showcase_qa_plan; qa_plan2_gate (handler calls an imported helper → compile warns "will be BUNDLED instead", artifact shows handler ref only, runs IN-PROCESS from objectstack-runtime.*.mjs; the log shows[BodyRunner] sandboxed hook threwonly for qa_plan_gate) on showcase_qa_plan2. Admin session, Accept-Language per call.Card acceptance driven live:
phase…"records-forms.object-hook-lifecycle · rev 12 (exact citer: body-runner.ts, hook.zod.ts) · PARTIAL (clauses touching this fix pass; acceptance[0]–[5], [7]–[9] are showcase stamp/audit/priority clauses not touched → skipped)
CARD #33213 — the duplicate refusal in the writer's locale, naming a declared composite unique index's fields · fix PR #33348 (09da8c7) · PASS
env: same boot as #33214. Fixture showcase_qa_weekly_cost: code (Field unique:true, label 'Cost Code'), plant/carbon_grade/cost_week (labels Plant, Carbon Grade, Cost Week), index qa_wc_combo {fields:[plant,carbon_grade,cost_week], unique:'organization'}, index qa_wc_nolabel over two label-less fields; zh-CN labels 周成本/成本编码/工厂/牌号/成本周次.
Card acceptance driven live:
field(composite), no valuerecords-forms.field-unique-enforcement · rev 14 (exact citer: duplicate-record-error.ts) · PARTIAL (every driven clause passes; acceptance[4]/[5] and negative[3] are driver-scope clauses not touched by this fix → skipped)
fieldthe API key; no driver prefix/statement/values; count unchanged (1 row) + pin field-unique-rest-refusal.dogfood 5✓ (HTTP)api-backend.error-sentences-and-unique-violation-wire-code · rev 9 (exact citer: data-error-classification.ts) · PARTIAL (every driven clause passes; acceptance[1]/[3] not touched by this fix → skipped; their pins are green inside acceptance[0])
error. The action door answers 409 withmessage= the English developerMessage ("Duplicate record refused on '周成本': a unique constraint on '工厂', '牌号', '成本周次' already holds these values. No record was written.") and nouserMessage, while the SAME door relays a hook refusal localized (messageanduserMessage"计划处于 locked 状态,不能再修改。"); /updateMany's per-row errors carry the same English developer sentence. Repro: zh-CN, PUT /meta/action/qahk_take_combo?package=com.qa.hk {objectName showcase_qa_weekly_cost, type script, operation update, patch {plant:'P1',carbon_grade:'G1',cost_week:'2026-W46'}, execution perRecord}; POST /api/v1/actions/qahk/showcase_qa_weekly_cost/qahk_take_combo/OTHER_ROW_ID with Accept-Language zh-CN → expected a zh-CN user sentence (as /data's 已存在「工厂」…); actual English developer sentence. Pre-existing shape (the reference run at 0c2aeb9 saw the samemessage), not introduced by fix(objectql): the duplicate refusal reads in the writer's locale and names a declared composite unique index's fields #33348, whose PR says the wire stays unchanged; a gap beside the card for a console user who saves through an action or a bulk edit. Not a security finding.error"is otherwise generic … left for a key that determinably names no single authored column, such as a composite of two authored columns"; since fix(objectql): the duplicate refusal reads in the writer's locale and names a declared composite unique index's fields #33348 a DECLARED unique index whose fields all have labels is named ("A record with the same “Plant”, …"), and the sentence follows the writer's locale — the clause names neither (stale spec, not a product fail). (2) No checklist item covers a handler hook'srefusals(reasons, params, translation) or the duplicate refusal's locale: the only exact citers (object-hook-lifecycle, field-unique-enforcement, error-sentences) assert English sentences only — a gap for the anchor card. (3) object-hook-lifecycle's automated.ref has no pin for handler-hook refusals; verify's harness.hook-refusal-door.test.ts would be the natural ref.End 2026-11-15T10:10Z.
objectstack-fleet commentedon Nov 15, 2026
qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB
Clause tables 2 of 2: runner CUST2, cards #33206/#33207, #33181 and #33512, plus the independent verify pass (RUNNER rule 7) of the #33207 FAIL (QA run · R-CUST @ a557fa3; record #33785)
Start 2026-11-15T10:13Z. Ports 41140–41149. Scratch app: /home/user/qa1/CUST2/ws/examples/app-cust (cp -r of examples/app-showcase; ws/packages, ws/node_modules, ws/ui symlinked to the shared tree;
objectstack compile --update-access-matrixinto the scratch dist only; OS_HOME=/home/user/qa1/CUST2/home). QA fixtures in src/qa-cust2.ts (objects showcase_qa_seed_acct/_country (tenancy off)/_ws_tag (tenantField workspace_id, systemFields.tenant false)/deal (rep, account, country, home_org->sys_organization, tag, job->sys_job, seen* fields; owner_id NOT declared), handler hook showcase_qa_seed_deal_probe (beforeInsert: records ctx.session.organizationId, isSystem, and ctx.api count of showcase_qa_seed_acct); showcase_qa_an_order/_line/_cbp_line + set qa_an_reader for #33512). Every boot--no-compile --no-watch. No shared-tree file written; no GitHub writes. DB reads by better-sqlite3 read-only (/home/user/qa1/CUST2/sql.cjs).CARD #33206 / #33207 — org-scoped seed (org in write context; person refs through membership; refused probe reported) · fix PR #33222 (47a3b95) · FAIL
Later commits on the same file in the pinned history (read, all in 18.5.0): #33409 c92ae14 (probe filters on resolved tenant column), #33550 1e889b1 (replay matches/stamps declared tenant column), #33611 b95d915 (membership probe bounded by keyset; id-shaped person judged by membership), #33570 d7e1a5a (global object matched unscoped).
Env: scratch app, walled
OS_TENANCY_POSTURE=isolated(auth/config: multiOrgEnabled true, tenancyPosture isolated, degradedTenancy false), port 41140, DBs /home/user/qa1/CUST2/seed (boot 1) and /seed2 (fresh, boot 2); single-posture control DB /home/user/qa1/CUST2/single (3 boots). Loads driven over HTTP: boot-time Default-org replay, POST /api/v1/auth/organization/create (QA North, QA South, QA East → per-org seed-replayer), POST /api/v1/marketplace/install-local with an inline manifest (package com.qa.cust2pkg, object qacp_deal, owner_id not declared) into the admin's active org (install into an organization). Personas by POST /auth/admin/create-user: 'QA Rep Bea' member of Default (created first), a second 'QA Rep Bea' member of North, 'QA Rep Cy' member of North.Card acceptance driven live:
owner_id: <name>(the card's own symptom) resolves through membership{type:'lookup', reference:'sys_user'}per GET /api/v1/meta/object/showcase_qa_seed_deal):{object, externalId:'name', records:[{name:'D-owner-admin', owner_id:'Dev Admin', rep:'Dev Admin'}]}(rep = declared lookup sys_user).Disposition: product defect (pre-existing, not introduced by fix(metadata-protocol)!: an organization's seed load resolves people through its membership, reports a refused reference probe, and writes as that organization #33222 — the single-boot control fails identically — but the card's acceptance names owner_id and the PR's docs promise it). Likely producer (reading only): SeedLoaderService.buildDependencyGraph builds the reference map from
metadata.getObject(); for a config-app object that is the authored definition without injected system fields, so owner_id never enters the map. Pin gap: runtime/src/seed-org-scoped-references.integration.test.ts feeds the loader a metadata double returningengine.registry.getObject()(owner_id injected), so it cannot see this. Downstream impact: HotCRM objects that rely on the injected owner_id (most) would store a literal name as owner; those that declareowner_id: Field.lookup('sys_user')(psa project/expense/timesheet/rate_card) behave like rep.platform-core.seed-mode-matrixrev 8 (only one; content/docs/data-modeling/seed-data.mdx has no citer). Brief candidateplatform-core.seed-integrityrev 7 does not cite any changed file exactly; driven for its replay clauses only because the PR changes the loader's write context on every load.platform-core.seed-mode-matrix · rev 8 · PARTIAL (clauses this fix touches)
platform-core.seed-integrity · rev 7 · PARTIAL
name; not a promise of the docs, so nothing filed); opposite posture = single (control, above); id-shaped/opaque id of a non-member (fix(metadata-protocol)!: the seed membership probe is bounded by the organization's members, and an id-shaped person is judged by membership #33611) → refused with "not a member". Found: nothing beyond 2c and the stale doc row. Also observed: home_org 'QA North' on South's load says "no such sys_organization row exists" although the row exists (another org) — the error wording for the own-organization scope says "no such row", a mild mismatch with the doc's "the load's own organization only"; not filed.CARD #33181 — pending SSO-only users on a managed environment · fix PR #33227 (cbb876c) · PARTIAL
Env: scratch app,
OS_CLOUD_MANAGED=1 OS_AUTH_ADMIN=false(the Free/Team hosted kernel shape: GET /api/v1/auth/config features.cloudManaged true, admin false), single posture, port 41141, DB /home/user/qa1/CUST2/sso. Provisioned locally by env alone; no blocked fixture except the platform IdP and a wired host (below). Off-managed probe on port 41142 (/an).Card acceptance driven live:
;-lists applied (mo.member: showcase_finance,showcase_legal). Re-running a CSV → every existing row alreadyPending, notApplied listed, no duplicate sys_user per emailhostkey with no host wired (as the docs say). A WIRED host (told on add; asked before ban/unban; typed refusal; 503 fail-closed deactivation) is an AuthPlugin constructor option with no env or config door, soos devcannot wire one: blocked{fixture: needs a host-supplied AuthPlugin(environmentUserHost)} → Tier 1 pending-sso-seams + pending-sso-users pins (plugin unit)identity-auth.admin-lifecycle-operationsrev 12 (cites admin-user-endpoints.ts; the ban change),identity-auth.identity-import-wizardrev 4 (cites admin-user-endpoints.ts; managed import refusal),identity-auth.implicit-account-linking-ownershiprev 5 (cites implicit-account-linking.ts). ⚠ admin-ban-endpoints.ts, pending-sso-users.ts, pending-sso-marker.ts, user-session-admission.ts, user-ban-write.ts, environment-user-host.ts and cloud-managed.ts's exact path have NO exact citer: the new doors and the pending state are a checklist gap.identity-auth.admin-lifecycle-operations · rev 12 · PARTIAL
identity-auth.identity-import-wizard · rev 4 · PARTIAL
identity-auth.implicit-account-linking-ownership · rev 5 · PARTIAL
sys_userban_user/unban_user console actions still carry requiresFeature 'admin' (PR's own follow-up, Managed environments: re-show the add-people actions in Setup → Users (reverse #25295 / #25309's visible predicates for adding) #33186); not driven in the UI.CARD #33512 — analytics one-hop cross-object where on the engine-aggregate path + >1000-parent refusal · PR #33512 (498c967, fixes #33335) · PASS (with one cross-path observation)
Env: scratch app, single posture, NOT managed, port 41142, DB /home/user/qa1/CUST2/an. Fixture seeded through the HTTP bulk door (POST /api/v1/data/OBJ/createMany as admin): showcase_qa_an_order 1,103 rows (1,000 open/NA, 3 open/APAC, 100 cancelled/EU); showcase_qa_an_line 19 rows (3 APAC lines amount 10, 10 NA lines amount 1, 5 cancelled-parent lines amount 100, 1 orphan with no order amount 1000); showcase_qa_an_cbp_line 6 rows (controlled_by_parent; 4 open, 2 cancelled). Cube = the inferred object cube (POST /api/v1/analytics/query {cube:'showcase_qa_an_line', measures:[count, amount_sum], where}). Path control: without a time bucket the admin query is served natively (answer carries
sql, a LEFT JOIN). With timeDimensions granularity 'month' it is served by ObjectQLStrategy (nosql), and also for a reader on the controlled_by_parent detail. Persona rdr@qa-cust2.test holds qa_an_reader (order read WITHOUT View All, secret_note readable:false; line read+viewAll; cbp line read). ⚠ First fixture had viewAllRecords on the order, which (correctly, as documented) restores the masked field; corrected, recompiled, rebooted. Only the corrected run is cited.Card acceptance driven live (engine path = month bucket, HTTP /analytics/query):
$ne. Native (admin, no bucket): {'order.status':{$ne:'open'}} → 6/1500 and {$ne:'cancelled'} → 14/1040, both including the orphan. The served SQL readsWHERE ("order"."status" IS NULL OR "order"."status" != $1). Engine path: 5/500, which matches /data. So on the same data, adding a month bucket to a widget changes its total. This contradicts the PR body's acceptance note ("the native strategy's LEFT JOIN evaluates $ne over a NULL parent as unknown, so an orphan is not selected there either. Under $ne the two strategies agree"). dashboards.mdx states the orphan rule only for the engine path and makes no parity promise, so no doc sentence is false. Seen twice (two operators). The native-path behaviour predates this PR.dashboards.cube-queryrev 4 anddashboards.analytics-exposure-gate-and-measure-aggregaterev 4 cite other service-analytics files. This is a checklist gap for the anchor card. Driven fromdashboards.cube-queryfor the clauses this fix touches:dashboards.cube-query · rev 4 · PARTIAL
End 10:35Z
Rule-7 verify pass · #33207 owner_id leg (independent agent; did not read the first runner's evidence)
Started 2026-11-15T10:31Z · tree /home/user/objectstack @ a557fa3 · ports 41100–41109 · scratch /home/user/qa1/VERIFY/ws/examples/app-v
Fixture
src/data/objects/vfy.object.ts:showcase_vfy_widget— NO owner_id declared;rep: Field.user(),rep_lk: Field.lookup('sys_user').showcase_vfy_owned(Control A) — declaresowner_id: Field.lookup('sys_user'),rep: Field.user().sys_userdirectory rowVera Verify / vera.verify@example.com(non-admin person, to separatereal resolution from the first-admin NULL-owner handoff), then for each object rows
X {owner_id:'Dev Admin', rep:'Dev Admin'(, rep_lk)}andY {owner_id:'Vera Verify', rep:'Vera Verify'(, rep_lk)}.Dev Admin(plugin-auth auth-plugin.ts:3250OS_SEED_ADMIN_NAME || 'Dev Admin'), confirmed live below.npx objectstack compilein the copy: exit 0. Artifact: vfy_widget fields = [name, rep, rep_lk] (no owner_id); vfy_owned fields = [name, owner_id(lookup sys_user), rep].Leg 1 · single posture (default) · run S1 · fresh DB /home/user/qa1/VERIFY/s1/data.db · :41100
Boot:
OS_HOME=/home/user/qa1/VERIFY/home OS_PORT=41100 OS_CLOUD_URL=off npx objectstack dev --seed-admin --no-compile --no-watch -p 41100 -d file:.../s1/data.db→ health 200, "Server is ready".Sign-in admin@objectos.ai → user.name = "Dev Admin", id 0uwD3H7KXHByNSsXS0tagbvuSJrShE9B (created 10:33:35.040Z).
Seed ran at 10:33:33.9Z, i.e. BEFORE the dev admin existed (admin is minted at kernel:ready). Boot log:
Deferred reference UNRESOLVED after pass 2 — showcase_vfy_widget.rep … 'Dev Admin' … no such sys_user row exists(also rep_lk, vfy_owned.owner_id, vfy_owned.rep for row X).showcase_vfy_widget.owner_id(rows X or Y): it was never treated as a reference.HTTP
GET /api/v1/data/showcase_vfy_widget(admin bearer):"owner_id":"Dev Admin","rep":null,"rep_lk":null"owner_id":"Vera Verify","rep":"JfVslg3dvTAEWWyp","rep_lk":"JfVslg3dvTAEWWyp"(JfVslg3dvTAEWWyp = sys_user Vera Verify)HTTP
GET /api/v1/data/showcase_vfy_owned(Control A, owner_id declared):"owner_id":"0uwD3H7KXHByNSsXS0tagbvuSJrShE9B","rep":null, updated_at 10:33:35.374Z (after admin creation) → this is the first-admin NULL-owner HANDOFF, not seed resolution (seed left it NULL: logged unresolved)."owner_id":"JfVslg3dvTAEWWyp","rep":"JfVslg3dvTAEWWyp"→ declared owner_id resolved by name.Raw SQLite (better-sqlite3 readonly): widget X owner_id='Dev Admin' (text), Y owner_id='Vera Verify' (text); owned X owner_id=0uwD3H…, Y owner_id=JfVslg3dvTAEWWyp. Same as HTTP.
sys_member: Dev Admin and Vera both members of org_mwhp5exujgbod2xg (Default Organization).
Fixture note: the Vera directory row (no credential) makes boot log
no_sign_in_account_at_bootERROR before the admin seed; the admin was still minted and signs in (harmless to this test).Trap found: with
owner_id:'Dev Admin'on a FRESH DB, nothing can resolve to the admin at seed time (admin does not exist yet); a declared owner_id that is left NULL is then claimed by the handoff and READS as resolved. So 'Dev Admin' alone cannot distinguish resolution from handoff on a declared owner_id; Vera (pre-existing non-admin) and a second-boot row (below) do.Leg 1b · self-check · same DB rebooted with a new row Z naming 'Dev Admin' (admin now exists at seed time)
Added
Z {owner_id:'Dev Admin', rep:'Dev Admin'(, rep_lk)}to both datasets,npx objectstack compileexit 0, rebooted S1 DB on :41100.HTTP
GET /api/v1/data/showcase_vfy_widget: Z →"owner_id":"Dev Admin","rep":"0uwD3H7KXHByNSsXS0tagbvuSJrShE9B","rep_lk":"0uwD3H7KXHByNSsXS0tagbvuSJrShE9B"HTTP
GET /api/v1/data/showcase_vfy_owned: Z →"owner_id":"0uwD3H7KXHByNSsXS0tagbvuSJrShE9B","rep":"0uwD3H7KXHByNSsXS0tagbvuSJrShE9B", created_at == updated_at (10:34:49.370Z) → resolved by the seed, not by the handoff.Raw SQLite identical. Self-check passed: the exact string 'Dev Admin' resolves on
rep/rep_lkof the same row and on a declared owner_id; only the injected owner_id stays the literal text.No seed warning/error for widget.owner_id on this boot either (silent verbatim write).
Leg 1 · repro 2 · single posture · fresh DB /home/user/qa1/VERIFY/s2/data.db · :41101 (seed now has X, Y, Z)
HTTP
GET /api/v1/data/showcase_vfy_widget: Xowner_id:"Dev Admin", rep:null· Yowner_id:"Vera Verify", rep:"MZjF04Xe1bJnyOhK", rep_lk:"MZjF04Xe1bJnyOhK"· Zowner_id:"Dev Admin", rep:null(admin not yet minted at seed time on a fresh DB).HTTP
GET /api/v1/data/showcase_vfy_owned: Xowner_id:"dwnJD5Hk…"(handoff) · Yowner_id:"MZjF04Xe1bJnyOhK"(resolved) · Zowner_id:"dwnJD5Hk…"(handoff).Raw SQLite identical (MZjF04Xe1bJnyOhK = Vera Verify, dwnJD5HkjFj4EEDlakU3wi9hOLsPBsbF = Dev Admin). Boot log: 0 lines mention vfy_widget.owner_id.
Reproduced: injected owner_id written verbatim ('Vera Verify'), declared rep on the same row resolved to the same person.
Leg 2 · isolated posture · attempt I1 (fixture-invalidated) · :41102
Env: OS_TENANCY_POSTURE=isolated, OS_PLATFORM_OWNER_EMAIL=admin@objectos.ai, OS_AUTH_MEMBERSHIP_POLICY=invite-only (qa-fixture walled-boot set), by hand with --no-compile.
/api/v1/auth/config → multiOrgEnabled true, tenancyPosture isolated, degradedTenancy false; no DEGRADED. Banner "Seeds: not run this boot (multi-tenant-replay)".
The per-org replay into Default Organization ABORTED:
WARN [org-scoping] per-org seed replay failed, falling back {"error":"A filter on object 'sys_user' names a column the database could not resolve…"}→ 0 rows in both vfy objects.Cause: my fixture's
sys_userupsert dataset (Vera) — the replay's existing-row read on sys_user is refused under an org-scoped load. Not the claim under test; side observation only (an app seed dataset on sys_user takes down the whole per-org replay under isolated). Re-ran without the sys_user dataset (I2/I3).Leg 2 · isolated · run I2 · fresh DB /home/user/qa1/VERIFY/i2/data.db · :41103 (no sys_user dataset; seed rows X,Y,Z)
auth/config: multiOrgEnabled true / isolated / degradedTenancy false; no DEGRADED.
(a) Boot replay into Default Organization org_mwhp9fppzzy18ghl ran at 10:36:41Z, BEFORE Dev Admin was minted → every declared person ref unresolved ("no such sys_user row exists"); declared owner_id later filled by handoff. widget.owner_id = 'Dev Admin'/'Vera Verify' verbatim.
(b)
POST /api/v1/auth/organization/create {name/slug:vfy-north}as admin → replay into org 1UlwHWqDEDQJyuUlzVGPnc4Qboj5Xc4H at 10:36:52.15Z. Log for rep/rep_lk/declared owner_id on 'Dev Admin': "the sys_user row that answers to it is not a member of organization 1UlwHW…" — the creator's sys_member row is written at 10:36:52.175Z, AFTER the replay. So on org-create the creator can never be resolved (side observation; timing of member insert vs replay).HTTP
GET /api/v1/data/showcase_vfy_widget(admin, active org vfy-north): every rowowner_id:"Dev Admin"/"Vera Verify"verbatim, rep/rep_lk null.showcase_vfy_ownedin vfy-north: owner_id null, rep null (handoff did not claim them in this window). Raw SQLite same.No log line for vfy_widget.owner_id in either replay (never a reference).
Leg 2 · isolated · run I3 · fresh DB /home/user/qa1/VERIFY/i3/data.db · :41104 (rows X,Y,Z,W + M naming 'Mei Phone (demo)')
No DEGRADED. Boot replay into Default Organization org_mwhpe12y0vh2why5: no person existed yet (Dev Admin, Mei, Ada all minted after the replay) → every declared ref "no such sys_user row exists".
HTTP
GET /api/v1/data/showcase_vfy_widget: all rows owner_id verbatim text ('Dev Admin', 'Vera Verify', 'Mei Phone (demo)'), rep/rep_lk null.HTTP
GET /api/v1/data/showcase_vfy_owned: all owner_id = zfHzqnmD… (Dev Admin) via the NULL-owner handoff (seed logged them unresolved), rep null.Boot log lines naming vfy_widget.owner_id: 0. Raw SQLite identical.
Limit of the HTTP walled leg: on every walled HTTP path available (boot replay; org-create replay) NO person is a member of the target organization at load time, so the walled HTTP leg can show the verbatim injected owner_id but cannot show a declared ref resolving on the same row. The contrast under
isolatedis taken at the engine layer below.Leg 2b · isolated + single · ENGINE layer (real AppPlugin replayer + ObjectQL + SqlDriver/better-sqlite3, built dist at a557fa3)
Script /home/user/qa1/VERIFY/pin/pin.mjs mirrors packages/runtime/src/seed-org-scoped-references.integration.test.ts boot() (Zhang Wei member of North;
replayer(ORG_NORTH)under isolated, inline seed under single). ONE variable: whatmetadata.getObjectserves —enriched(engine.registry.getObject, what the #33222 test stub serves) vsauthored(the definition as written, what the live boot evidently serves).Seed row on both objects:
{name:'D1', rep:'Zhang Wei', owner_id:'Zhang Wei'}; crm_deal declares no owner_id, crm_deal_owned declares owner_id lookup sys_user.Under isolated with the person a member, the declared ref and declared owner_id resolve through membership (the #33207 fix works), the injected owner_id does not. The #33222 pin ("a member of the load organization is resolved (rep and owner_id)", test line ~215, crm_deal has no owner_id field) passes only because its metadata stub serves the engine-enriched definition (
definitions = objects.map(o => engine.registry.getObject(o.name) ?? o)), which carries the injected owner_id.Control B · 18.4.0 (181ad7d) · code read only
git show 181ad7d4:packages/metadata-protocol/src/seed-loader.ts:buildDependencyGraph…resolveObjectDefinitionblock is byte-identical to a557fa3 (diff empty). Same metadata-first definition, same "only objDef.fields" walk. → the injected-owner_id gap predates the fix: regression NO (pre-existing). At 18.4 an org-scoped load additionally failed every sys_user probe (the #33207 bug itself), so under walled postures neither rep nor owner_id resolved there.Mechanism (seed-loader.ts @ a557fa3)
resolveObjectDefinition(l.1370): returnsmetadata.getObject(name)whenever it hasfields; the engine schema (engine.getSchema) is only a fallback when metadata has none.buildDependencyGraph(l.1283): references = fields of THAT definition with type lookup/master_detail/user. An authored definition carries noowner_id(it is added by objectqlapplySystemFieldsat registration: lookup→sys_user, system:true), soowner_idnever entersreferences, is never probed, never deferred, never logged, and is written verbatim.seedRowTenantColumn/carriesOrganizationColumnconsultresolveInjectedSystemColumns(def).tenant, andwarnOnUndeclaredSeedColumnsadmitsresolveInjectedSystemColumns(def).names— but the reference graph does not consult.owner.owner_id(Control A) is infields→ resolved;Field.user()andField.lookup('sys_user')both resolved (rep, rep_lk).Mechanism explains every observation: verbatim text, zero log lines, declared fields on the same row resolved.
Side observations (not the claim)
sys_user(upsert by email) makes the whole per-org replay fail ("A filter on object 'sys_user' names a column the database could not resolve", then "falling back") — I1.sys_memberrow (replay 10:36:52.15Z, member 10:36:52.175Z), so the founder is "not a member" and can never be resolved by that replay — I2. The documented "a person reference resolves to a member" is reachable on reseed/install paths, not on create.'Dev Admin'cannot resolve anywhere on the first boot; a declared owner_id then gets the admin via the NULL-owner handoff and LOOKS resolved (trap for anyone verifying with 'Dev Admin').Verdict: CONFIRMED (both postures; engine-layer for the isolated contrast). Regression vs 18.4: NO (identical code).
Ended 2026-11-15T10:41Z.
objectstack-fleet commentedon Nov 15, 2026
qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB
Close-out 2026-11-15T10:53Z. Wave anchor #33761 (v18.5.0 sweep, round 1).
The one FAIL (#33207, the
owner_id: NAMEseed leg) is a product defect, not a regression versus 18.4.0; extracted below and reported to the maintainer. #33181's PARTIAL is a fixture block (pins cover both legs).objectstack-fleet commentedon Nov 15, 2026
qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB
Closed 2026-11-15T10:54Z: the customer cards are judged at a557fa3 (one FAIL extracted as #33791); close-out in comment 6893257656.
docs(qa): cover the objectstack-ai#33761 ledger gaps and name --repor…