Skip to content

QA run · release-18.5.0-customer-cards (6/6) · a557fa38 · 2026-11-15 · 4 PASS / 1 PARTIAL / 1 FAIL / 0 BLOCKED / 0 NOT-RUN #33785

Closed

Description

@objectstack-fleet

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

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:

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.integration 26: 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.

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):

  1. In an app config object that does not declare owner_id (the platform injects owner_id as a lookup to sys_user, as GET /api/v1/meta/object/<obj> shows), seed a row {name:'Y', owner_id:'<person name>', rep:'<person name>'}, where rep is a declared Field.user().
  2. Boot single, or boot walled isolated and POST /api/v1/auth/organization/create.
  3. GET /api/v1/data/<obj> as admin.
  • Expected, per content/docs/data-modeling/seed-data.mdx :473 and the 33207 changeset: owner_id is handled like rep. It holds the person's id, or is NULL plus a "not a member" error.
  • Actual: owner_id holds the literal name ("Vera Verify", "Dev Admin"), with no log line. On the same row rep resolves ("JfVslg3dvTAEWWyp"), and an object that declares owner_id resolves it.
  • Self-check: the same name resolves on rep, on rep_lk and on a declared owner_id. A first-boot 'Dev Admin' that cannot exist yet was ruled out by a reboot leg.

Disposition: product defect.

  • Mechanism: seed-loader.ts resolveObjectDefinition (about :1370) prefers the authored metadata definition, which has no injected owner_id, so buildDependencyGraph (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, payment and billing_milestone do not declare owner_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_id row overclaims (this FAIL). The tenantField row 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

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_member row 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_user makes 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)

  1. 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-guards covers only the unamended edit question. It needs a revision or a new item.
  2. No item covers the renamedFrom holder carry, at boot or hot (positions: carry renamedFrom holders on a hot package install or upgrade too, not only at kernel boot #33238).
  3. 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-lifecycle automated.ref could add verify's harness.hook-refusal-door.test.ts.
  4. records-forms.field-unique-enforcement acceptance[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.
  5. 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.ts and dashboards.mdx.
  6. packages/plugins/plugin-security/src/security-plugin-cbp-relation.ts has no exact citer. checklist-select file: falls back to the directory and returns a long list.
  7. 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.ts serves engine.registry.getObject() as the metadata definition. This is also the TO of card-CUST-3.

Activity

  1. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    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-matrix into 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-watch on the scratch copy. No shared-tree file written; no GitHub writes.

    CARD #33250 — controlled_by_parent writeRequiresMasterRead · fix PR #33369 (df9fe94) · PASS

    env: 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:

    # criterion verdict evidence
    1 opt-in parses on a cbp detail; refused elsewhere and beside ownerMayEdit pass save door PUT /meta/object/qacust_good?package=com.qa.cust1 (cbp + key) → 200 saved; qacust_bad1 (private + key) → 422 INVALID_METADATA path sharing.controlledByParent.writeRequiresMasterRead "…The opt-in is read only on a sharingModel: 'controlled_by_parent' detail…"; qacust_bad2 (cbp + key + ownerMayEdit) → 422 path sharing.controlledByParent.ownerMayEdit "…Delete ownerMayEdit; writeRequiresMasterRead already admits the owner."; compile of the fixture app accepted the key (artifact sharing {controlledByParent:{writeRequiresMasterRead:true}})
    2a master reader with detail create inserts; with update updates (and deletes, per PR) pass rdr: GET C1 200 but PATCH C1 403 PERMISSION_DENIED (reads, cannot edit master); POST /data/showcase_qa_milestone {contract:C1} → 201; POST …/createMany [2 rows] → 201 count 2; PATCH own row → 200; PATCH admin-owned row (non-owner) → 200 amount 11; DELETE admin-owned row → 200; DELETE own → 200; admin read-back shows exactly the expected rows
    2b without read on the master, both still 403 pass blind (no master object read): insert → 403 PERMISSION_DENIED "…requires read access to its master record (no read permission on master 'showcase_qa_contract')"; hidden (master row hidden by OWD private): insert → 403 "…(master 'showcase_qa_contract' not readable by this user (row-level security or record sharing))"; both personas' by-id PATCH/DELETE of B1 → 404 RECORD_NOT_FOUND (PR acceptance note: read door hides the row first); B1 unchanged on admin read-back
    2c the detail's own grants still decide pass looker (reads master, milestone READ only): insert/PATCH/DELETE → 403 PERMISSION_DENIED generic object-permission sentence
    3 without the opt-in, unchanged pass CONTROL showcase_qa_step, same rdr: insert/PATCH/DELETE → 403 "[Security] Access denied: OP on 'showcase_qa_step' requires edit access to its master record (no edit permission on master 'showcase_qa_contract')" (the ADR-0055 §3 edit question, as before)
    4 master check on the security service answers like the write path pass POST /security/explain as rdr: milestone B1 update/delete → record.visible true (PATCH/DELETE 200); step S2 update/delete → visible false, sharing "excluded … refuses this update on its 'object_permission' leg … answers 403 PERMISSION_DENIED" (PATCH/DELETE 403); looker milestone → visible false decidedBy object_crud (403). Engine pins for checkControlledByParentWrite green (Tier 1)
    5 docs and authoring skills describe it pass writeRequiresMasterRead present in content/docs/permissions/{permissions-matrix,sharing-rules,rls}.mdx, error-catalog, skills/objectstack-data/rules/relationships.md (+ evals), docs/adr/0055
    Items (exact source[] citers of the PR's changed non-test files): access-security.parent-and-organization-write-guards rev 7 (cites explain-engine.ts and security-plugin.ts, both changed). access-security.record-access-explain rev 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)

    clause verdict evidence
    acceptance[0] pass pins at a557fa3, --maxWorkers=1: @objectstack/qa-dogfood parent-and-organization-write-guards.dogfood 6✓, cbp-parent-attachment-comment-gates.dogfood 10✓, cbp-explain-master-write.dogfood 20✓ (HTTP, in-process bootStack); @objectstack/plugin-security tenant-wall-organization-removal 34✓, controlled-by-parent-chain-middle-master 9✓ (engine + SecurityPlugin); @objectstack/objectql engine-unreadable-master-detail-header + engine-predicate-related-master-detail-header 52✓ (engine); 0 failed
    acceptance[1] skipped walled organization-removal leg: not touched by this fix (pin in acceptance[0] green)
    acceptance[2] (cbp leg) pass live, opted-in detail: hidden insert naming admin's unreadable C1 and naming NoSuchId0000001 → byte-identical 403 PERMISSION_DENIED bodies; same parity for blind, for rdr (nonexistent id) and on the CONTROL detail (both "requires edit access…")
    acceptance[3] pass live, CONTROL detail (master not editable by rdr): attach (upload/complete attachTo, scope attachments) → 403 ATTACHMENT_PARENT_ACCESS and POST /data/sys_attachment → 403 ATTACHMENT_PARENT_ACCESS; explain update → not visible, decided by sharing, matching PATCH 403
    negative[0] pass no existence oracle: unreadable vs nonexistent master answer the same body on both details, every persona tried
    • Tier 1 (PR's own tests, --maxWorkers=1): @objectstack/plugin-security controlled-by-parent-owner-may-edit 43✓ (engine: real ObjectQL + SqlDriver + security wiring), explain-controlled-by-parent-write 87✓ (engine); @objectstack/spec data/controlled-by-parent-owner-may-edit 26✓ (schema unit); @objectstack/lint validate-security-posture-owner-may-edit 40✓ (lint unit); 0 failed.
    • Probe (rule 8): 8 min · doors POST /data, /createMany, sys_attachment, storage upload/complete attachTo, /security/explain · personas rdr/blind/hidden/looker/admin · classes: unknown master id (existence oracle) on opted-in vs control; attach on an OPTED-IN detail by a master reader (beyond the clause: lands 200, sys_attachment row created_by rdr; looker → 403 ATTACHMENT_PARENT_ACCESS, so the attach gate follows the detail's own edit verdict under the opt-in, consistent with the PR) · findings: none.
    • Notes / checklist-accuracy: no checklist item drives the opt-in itself (no clause names writeRequiresMasterRead; parent-and-organization-write-guards only covers the unamended edit question) — a coverage gap for the anchor card: an item (or a revision of parent-and-organization-write-guards) should carry the opt-in's admit side, the read-refusal leg (403 vs 404 by door) and the save-door parse refusals.

    CARD #33238 — positions renamedFrom holders carried on a hot install / upgrade · fix PR #33245 (4a0c480) + completing PRs #33473 (2cafe3e), #33448 (e3f0cfd), #33304 (7adb1b5) · PASS

    env: 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 install sends): 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:

    # criterion verdict evidence
    1 a hot install/upgrade registering a renamed position carries its holders without a restart pass v1 install-local → 200 hotLoaded true; pu1 GET qaposren_doc 200 / POST 201. v2 install-local (same process, 10:00:59→10:01:00) → 200 hotLoaded true, upgradedFrom set; log "Withdrew 1 item(s) … no longer ships: position/com.qa.posren:qaposren_rep"; sys_user_position pu1 → qaposren_sales_rep (updated 10:01:00.357Z), me/permissions positions [org_member, qaposren_sales_rep, everyone], sets keep qaposren_reader; pu1 GET 200 / POST 201 (access kept, no restart); GET /meta/position serves only qaposren_auditor, qaposren_sales_rep
    2 CONTROL holder untouched pass pu2 stays qaposren_auditor (updated_at unchanged 10:00:52.684Z), still read-only (POST 403)
    3 idempotent pass repeat v2 install-local → 200; both holder rows' updated_at unchanged
    4 per-item publish door also carries (changeset) pass authored package com.qa.authpos (POST /packages 201): position qaauth_old (holder pu3) deleted, qaauth_new {renamedFrom:[qaauth_old]} saved mode=draft then POST /meta/position/qaauth_new/publish → 200; pu3 → qaauth_new (10:01:51.692Z) and pu3 POST qaposren_doc 201
    5 a package never claims another holder's people (ruling condition 2, reload path) pass install-local com.qa.claimer (qaclaim_x renamedFrom [qaposren_auditor, qaauth_new]) → 200; log WARN "position rename 'qaposren_auditor' → 'qaclaim_x' … was not carried … held-by-other" (same for qaauth_new); pu2/pu3 rows unchanged
    • Items: no checklist item covers this fix — no area item's source[] cites position-renamed-holder-carry.ts or security-plugin-start-hooks.ts' carry hook (security-plugin-start-hooks.ts is cited only by access-security.agent-ceiling-set-assignment-refusal, unrelated clauses), and a grep of every area for renamedFrom finds only field renames (cli.deploy-runtime-dry-run-json) and Studio hook authoring. api-backend.package-rest-lifecycle rev 6 cites runtime/src/domains/packages.ts (changed by the completing PR fix(runtime): the package install and enable routes announce metadata:reloaded #33448), but its clauses are package lifecycle fields, not the announcement: not scored. Noted live: POST /api/v1/packages refuses a manifest carrying positions (400 naming ManifestSchema's declared keys), so the brief's suggested POST /packages door cannot install a renamed position; the install-local door and the per-item publish door were used instead.
    • Tier 1 (--maxWorkers=1): @objectstack/plugin-security position-renamed-holder-carry 35✓ (engine: real ObjectKernel + SqlDriver + SecurityPlugin); @objectstack/cloud-connection marketplace-install-local-hot-resync 6✓ (real install-local route handler over a real kernel, no HTTP server); @objectstack/runtime domains/packages-reload-announce 10✓ (HttpDispatcher over a real kernel); 0 failed.
    • Probe (rule 8): 9 min · doors install-local, POST /packages, PUT/DELETE/publish /meta/position, data reads · personas admin, pu1–pu4 · classes: opposite posture of the publish door (direct ACTIVE save instead of draft+publish), claim of another package's names, repeat install. Finding (product gap, reproduced twice, low/medium): a position rename saved through the metadata save door's default ACTIVE mode is NOT carried until restart. Repro: POST /api/v1/packages {manifest:{id:com.qa.authpos,…}} → PUT /api/v1/meta/position/qaauth_a?package=com.qa.authpos {permissionSets:[qaposren_reader]} (200 state=active) → POST /data/sys_user_position {user pu4, position qaauth_a} → pu4 POST /data/qaposren_doc 201 → DELETE /meta/position/qaauth_a?package=… (200) → PUT /meta/position/qaauth_b?package=… {renamedFrom:['qaauth_a'],permissionSets:[qaposren_reader]} (200 state=active) → expected pu4 carried to qaauth_b; actual sys_user_position still qaauth_a and pu4 POST → 403 PERMISSION_DENIED (log: positions [org_member, qaauth_a, everyone]); after a restart on the same DB the boot run carries it (pu4 → qaauth_b, POST 201). Same shape first seen with qaauth_old→qaauth_new (carried only after a later draft+publish). Mechanism (not proven): ObjectQLPlugin announces metadata:reloaded from onMetaItemPublished (the draft publish door) only; the active save fires onMetadataMutation, which re-syncs hooks/actions but announces nothing. The changeset's carried / carried-at-restart lists name neither this door. Dedupe: searched "renamedFrom holder carry active save", "position rename save door metadata:reloaded" — no match. Not a security finding (fail-closed access loss). CARD DRAFT: "positions: a renamedFrom position saved through the metadata save door's active mode does not carry its holders until restart (only draft+publish announces)" — QA-source: R-CUST · card positions: carry renamedFrom holders on a hot package install or upgrade too, not only at kernel boot #33238 · observed beside the clauses.
    • Notes: brief says "Use POST /api/v1/packages" — that door cannot carry positions (ManifestSchema has no positions key), as the PR fix(runtime): the package install and enable routes announce metadata:reloaded #33448 test docblock also states; checklist gap for the anchor card: no item asserts the renamedFrom carry at all (boot or hot).

    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 refusals on 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 threw only for qa_plan_gate) on showcase_qa_plan2. Admin session, Accept-Language per call.
    Card acceptance driven live:

    # criterion verdict evidence
    1 a handler hook declares refusals (accepted at build/save) pass compile accepted both handler hooks with refusals+reasons+params; save door: PUT /meta/hook/qahk_gate3?package=com.qa.hk (reasons+params) 200
    2 refusal by declared reason with params, en pass both paths: POST {state:'locked'} → 400 {"error":"The plan is locked and can no longer change.","code":"VALIDATION_FAILED","fields":[],"object":…,"userMessage":same}; name_reserved → 400 "This plan name is reserved."; code with no reason → entry sentence "This plan cannot be submitted."
    3 same in zh-CN pass both paths: 400 "计划处于 locked 状态,不能再修改。" / "该计划名称已被保留。" / "该计划无法提交。"; CREDIT_LIMIT → 409 RESOURCE_CONFLICT declaredCode CREDIT_LIMIT "该计划超出信用额度。" (en: "This plan exceeds the credit limit."); PATCH (beforeUpdate) zh-CN → same 400, row keeps state draft
    4 the in-process handler and the lowered body answer the same envelope pass all 10 refusal bodies (5 vectors × en/zh-CN) identical across qa_plan_gate and qa_plan2_gate once the object name is normalised
    5 wire code unchanged; undeclared reason refused loudly pass VALIDATION_FAILED stays the wire code for every reason; computed undeclared reason → 500 {"error":"Internal server error","code":"INTERNAL_ERROR"} on both paths, log names hook, code and reason ("hook 'qa_plan2_gate' threw code 'VALIDATION_FAILED' with reason 'not_declared' … declared: 'plan_locked', 'name_reserved'")
    6 save-time refusals (literal undeclared reason; hole over undeclared param) pass PUT /meta/hook body throwing literal reason c_d → 422 INVALID_METADATA path body.source "…declares no such reason (declared: 'a_b')…"; message "State {{ state }} no." with params ['phase'] → 422 path refusals.VALIDATION_FAILED.message "…binds only 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)

    clause verdict evidence
    acceptance[6] pass live: throwing beforeInsert under onError abort (both paths) → 400 with the declared sentence; filtered GETs for every refused name/state → 0 rows; refused PATCH leaves state 'draft'; pin object-hook-lifecycle-scratch.dogfood 4✓ (HTTP, in-process bootStack)
    negative[0] pass no orphan row after any refused insert (counts 0 on both objects)

    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:

    # criterion verdict evidence
    1 composite duplicate, en, names the index's fields pass POST /data → 409 {"error":"A record with the same “Plant”, “Carbon Grade”, “Cost Week” already exists","code":"UNIQUE_VIOLATION","developerMessage":"Duplicate record refused on 'Weekly Cost': a unique constraint on 'Plant', 'Carbon Grade', 'Cost Week' already holds these values. No record was written.","object":…} — no field (composite), no value
    2 composite duplicate, zh-CN pass 409 "已存在「工厂」、「牌号」、「成本周次」均相同的记录" (exactly the PR's pinned sentence), developerMessage with zh labels; same on PATCH-by-id into the collision and on POST …/createMany
    3 single-field duplicate in both locales pass en 409 "A record with this Cost Code already exists" field "code" (byte-identical to the pre-fix English form); zh-CN "已存在相同成本编码的记录" field "code"; PATCH onto a taken code → 409, row unchanged
    4 names nothing when a field has no label pass qa_wc_nolabel collision: en "A record with this value already exists", zh-CN "已存在相同值的记录"
    5 locale ladder pass de-DE → en sentence; ja-JP → 「Plant」、「Carbon Grade」、「Cost Week」がすべて同じレコードがすでに存在します (catalog ja, labels fall back to declared); no header → en; ?locale=zh-CN → zh-CN; partial (2 of 3) match lands 201

    records-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)

    clause verdict evidence
    acceptance[0] pass live 409 UNIQUE_VIOLATION, developerMessage names the object by label ('Weekly Cost' / '周成本') and says 'No record was written.', error names the single field by label, field the API key; no driver prefix/statement/values; count unchanged (1 row) + pin field-unique-rest-refusal.dogfood 5✓ (HTTP)
    acceptance[1] pass two rows with no code → 201, 201
    acceptance[2] pass PATCH onto taken code / taken combo → 409, re-read unchanged; PATCH leaving unique fields alone lands
    acceptance[3] pass POST /data/…/updateMany atomic stamping C-X onto two rows → 207 succeeded 0 / failed 2 (ROLLED_BACK + UNIQUE_VIOLATION 409); both rows still code null
    negative[0]–[2] pass no colliding write landed; no driver text; no half-applied batch

    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])

    clause verdict evidence
    acceptance[0] pass @objectstack/rest rest-write-route-hook-refusal-sentence.ledger 673✓, rest-hook-script-fault-envelope 18✓ (unit); @objectstack/runtime dispatcher-unique-violation-wire-code 7✓ (engine: HttpDispatcher over ObjectQL+SqlDriver); @objectstack/service-storage storage-routes.server-fault-withheld 18✓ (unit); @objectstack/qa-dogfood error-sentences-live.dogfood 4✓ (HTTP); 0 failed
    acceptance[2] pass live action door (runtime-authored update actions qahk_take_code / qahk_take_combo): POST /actions/qahk/showcase_qa_weekly_cost/ACTION/ID → 409 UNIQUE_VIOLATION, details exactly {developerMessage, field:"code", object} for the single field; for the composite details {developerMessage, object} (no field, per the PR's composite contract); row unchanged
    • Tier 1 (PR feat(spec,runtime): hook refusals on handler hooks, with declared reasons and params #33641, --maxWorkers=1): @objectstack/spec data/hook-refusals 97✓ (schema unit); @objectstack/runtime sandbox/hook-refusal-catalogue 38✓ (runtime unit: body runner + in-process seam); @objectstack/verify harness.hook-refusal-door 2✓ (HTTP via bootStack: source boot vs artifact boot, zh-CN byte-identical); @objectstack/cli i18n-hook-refusal-coverage 10✓, lower-callables 31✓ (cli unit); @objectstack/lint validate-translation-references 241✓, validate-hook-refusal-templates 12✓ (lint unit). (PR fix(objectql): the duplicate refusal reads in the writer's locale and names a declared composite unique index's fields #33348): @objectstack/objectql engine-duplicate-record-label-sentence 61✓ (engine, real write doors + mapDataError); @objectstack/rest rest-duplicate-record-arm 37✓ (real ObjectQL on better-sqlite3 + REST classification); @objectstack/spec system/operation-message 43✓ (unit); @objectstack/types unique-violation 63✓ (unit); 0 failed.
    • Probe (rule 8): 7 min · doors POST/PATCH /data, /createMany, /updateMany, /actions (runtime-authored update actions incl. one on the hook object), PUT /meta/hook · classes: Accept-Language boundary values (q-list, bare 'zh', uncatalogued de-DE, ja-JP, none, ?locale=), opposite door (action door and batch report instead of /data). Finding (low, wording/i18n, reproduced on 2 actions × 2 locales and on updateMany): the writer-locale duplicate sentence reaches only the /data door's error. The action door answers 409 with message = the English developerMessage ("Duplicate record refused on '周成本': a unique constraint on '工厂', '牌号', '成本周次' already holds these values. No record was written.") and no userMessage, while the SAME door relays a hook refusal localized (message and userMessage "计划处于 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 same message), 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.
    • Notes / checklist-accuracy: (1) field-unique-enforcement acceptance[0] is now stale: it says the user-facing 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's refusals (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.
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    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-matrix into 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:

    # criterion verdict evidence
    1 (#33206) a seed write carries the load's organization; a hook on a seeded row sees it pass probe hook column seen_org = the load org on every replay (Default org_mwhokr6i…, North vJJHlpRn…, South qxsgPCbc…, East rgcQwZ8S…), seen_system 'true'; single boot: seen_org = the sole org (org_mwhotbqw…) as the changeset says ("boot under single … sole organization")
    1b (#33206 BREAKING narrowing) under isolated, a hook's ctx.api read during a seed write sees only the load org pass seen_acct_count = 1 on North (2 Acme rows in DB then: Default+North), South (3 in DB), East — unscoped would read 2/3
    2a (#33207) a declared sys_user lookup on an org-scoped load resolves to a MEMBER; a same-named outsider is never borrowed pass install into North: qacp_deal P-bea rep = Ii8r0Qi8… (North's Bea), NOT XmNJGDPQ… (Default's same-named Bea, created first); P-cy rep = cBpqDOYK… (member)
    2b a person who exists but is not a member is not used; the error says "not a member" pass North replay D-member rep NULL + ERROR "…the sys_user row that answers to it is not a member of organization vJJHlpRn…, the organization this load seeds, and a person from outside it is never borrowed"; install P-mei (Default member) → NULL + same sentence; P-id-outsider (id XmNJ… of a non-member) → NULL + "not a member"
    2c (#33207) owner_id: <name> (the card's own symptom) resolves through membership FAIL the platform-INJECTED owner_id of an app's own (config-declared) object is never treated as a reference: D-owner owner_id stored as the literal string 'QA Rep Bea', D-owner-admin as 'Dev Admin', no error logged, on every load (Default/North/South replay boot 1; Default/East replay boot 2; single boots 1–3 where 'Dev Admin' exists and rep:'Dev Admin' resolves to g5p9kEJI…). CONTROL in the same replays: the package object qacp_deal (owner_id also not declared) resolves owner_id (P-bea owner_id = North's Bea; non-member → NULL + "not a member" error). Repro below
    3 a refused reference probe is reported, not swallowed pass East (and Default) replay, lookup to sys_job (platform table, no organization_id): WARN "[SeedLoader] A reference probe on sys_job.name was refused (INVALID_FILTER) … the probe never ran, which is not the same as no row matching" once per load (2 lines for 2 loads), and the pass-2 ERROR on D-refused says "because the probe into sys_job by name was REFUSED (INVALID_FILTER) and never ran, so this is not evidence that no such row exists". CONTROL single boot: the same job ref resolves (job_d954d871…)
    4 tenant target filtered to the load org; sys_organization → own org only; global object across orgs pass account → each org's own Acme (North eQTOI0mR…, South rfJVP1HE…), never Default's; home_org 'QA North' resolves in North, stays NULL in South (+ "no such sys_organization row exists" — see notes), 'QA South' resolves in South; showcase_qa_seed_country: ONE shared row Pn-nTTKJ… referenced by every org
    5 docs/changeset word-by-word vs walled behaviour partial (docs stale) seed-data.mdx table row "An object walled by another tenant column (tenancy.tenantField) with no organization_id column → nothing on such a load: the lookup is refused and reported" is FALSE at a557fa3: tag:'Gold' on showcase_qa_seed_ws_tag resolved to the load org's own Gold (North 0L3zCl3d…, South s0e-_WSN…, workspace_id stamped per org), no refusal logged — behaviour changed by #33409/#33550, doc not updated. Same sentence in the 33207 changeset ("keep the old lookup, and its refusal is now reported") is superseded by changeset 33393-seed-probe-tenant-column.md (both ship in 18.5.0 notes). Row "sys_user (people: owner_id, people lookups)" overclaims owner_id (2c). Hooks bullet ("a hook sees the organization … as ctx.session.organizationId … ctx.api reads … scoped") matches. "A load with no organization resolves across the whole database" matches (single control)
    • Repro (2c, reproduced on 2 fresh walled DBs + 3 single boots; self-check: the seed value is identical on the package object, which resolves, so driving is not the cause; owner_id is the platform's injected {type:'lookup', reference:'sys_user'} per GET /api/v1/meta/object/showcase_qa_seed_deal):
      1. App config object without a declared owner_id (any showcase-shaped object), seed dataset {object, externalId:'name', records:[{name:'D-owner-admin', owner_id:'Dev Admin', rep:'Dev Admin'}]} (rep = declared lookup sys_user).
      2. Boot (single, or isolated + POST /api/v1/auth/organization/create) → read the row: owner_id = 'Dev Admin' (literal), rep = admin id on single / NULL + "not a member" on an org load. Expected (seed-data.mdx L473, changeset): owner_id resolved like rep (to the member's id, or NULL + error). Actual: verbatim name, silently.
      3. Same record on an install-local inline-manifest package object → owner_id resolved / NULL + error (correct).
        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 returning engine.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 declare owner_id: Field.lookup('sys_user') (psa project/expense/timesheet/rate_card) behave like rep.
    • Items: exact source[] citer of packages/metadata-protocol/src/seed-loader.ts = platform-core.seed-mode-matrix rev 8 (only one; content/docs/data-modeling/seed-data.mdx has no citer). Brief candidate platform-core.seed-integrity rev 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)

    clause verdict evidence
    acceptance[0] pass single DB, upsert dataset showcase_qa_seed_deal: boot 2 updated the matched-and-different rows in place (D-owner-admin rep NULL→g5p9kEJI…, D-refused job NULL→job_d954…, updated_at 10:24:32, row count 8 unchanged, one row per key); boot 3 changed nothing (ids, updated_at, values byte-identical before/after) — the write context now carries the sole org (seen_org) without changing mode semantics
    negative[0] pass boot 3 left updated_at unchanged on all 8 identical rows
    acceptance[1–4] skipped update/ignore/insert/replace mode verbs are not touched by this fix
    acceptance[5] pass one SeedLoaderService on every path driven: boot seed, per-org seed-replayer (AppPlugin), install-local runInlineSeed — same refusal/membership sentences on each

    platform-core.seed-integrity · rev 7 · PARTIAL

    clause verdict evidence
    acceptance[2] pass boot banner "⚠ Seeds: com.example.showcase 152 ok / 8 errors ⚠ · com.qa.cust2pkg(marketplace) 4 ok / 7 errors" — the deliberate unresolved fixture references are reported, not hidden (but see 2c: the verbatim owner_id is NOT among them)
    acceptance[3] / negative[1] pass single DB boot 3 vs boot 2: deals 8, qa accts 1, showcase_account 14, task 10, invoice 12 — unchanged
    others skipped not touched by this fix
    • Tier 1: @objectstack/runtime src/seed-org-scoped-references.integration.test.ts 26/26 (engine layer: real AppPlugin, SeedLoaderService, ObjectQL, SqlDriver; metadata service is a double — see pin gap); @objectstack/metadata-protocol src/seed-loader-deferred-failure.test.ts 7/7 (plugin unit, engine double). --maxWorkers=1.
    • Probe (rule 8, ~10 min): boundary = a person named by email ('bea@qa-cust2.test') on a lookup with no target externalId → "no such sys_user row exists" (probe is name → id only; the natural key is the target dataset's externalId or 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.
    • Notes: per-org replay at organization creation runs before better-auth writes the founder's sys_member row (member created_at 10:23:39.466 after the replay's 10:23:39.4x lines), so a seed can never name the founder or anyone on the replay of a NEW organization; only install-into-org / reseed can reach existing members. Not a promise of the docs; recorded for the PM. Mishap: one stop of boot 1 missed the reparented node child, so for ~1 min two servers shared /seed/data.db; the QA East leg was redone on a fresh DB (/seed2) and only that one is cited.

    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:

    # criterion verdict evidence
    1 add a person with position, permission sets and manager, born pending pass POST /api/v1/auth/admin/add-sso-user {email Pat.Pending@…, name, positions:[showcase_manager], permissionSets:[qa_an_reader], manager: admin@objectos.ai} → 201 {source idp_pending, alreadyPending false, manager linked, host {notified false, reason no_host}}; DB: sys_user source idp_pending, email lower-cased, email_verified 0, manager_id = admin, 0 sys_account rows, sys_user_position showcase_manager, sys_user_permission_set qa_an_reader, one sys_member (member)
    1b re-add / held email / closed keys / bad grant pass re-add with positions → 200 alreadyPending true, notApplied ["positions"], grants unchanged; admin@objectos.ai (env_native) → 409 RESOURCE_CONFLICT "A user with this email address already exists…"; extra key password → 400 "Unknown field(s): password…"; positions:[no_such_position] → 400 VALIDATION_FAILED and no sys_user row for that email (rolled back)
    2 CSV import with positions, permission sets, manager; per-row results pass POST /admin/import-sso-users {csv} 6 rows → 200 summary {total 6, added 3, failed 3}: zed.report manager_id = yan.boss who is defined on a LATER row → "linked" (second pass), DB manager_id = yan's id; bad email row → INVALID_REQUEST alone; ghost manager → ok with manager "unresolved" + managerError; permission_sets no_such_set → VALIDATION_FAILED, row not created; admin email → RESOURCE_CONFLICT. ;-lists applied (mo.member: showcase_finance,showcase_legal). Re-running a CSV → every existing row alreadyPending, notApplied listed, no duplicate sys_user per email
    3 every password door refuses a pending row pass (3 of 4 live) admin/set-user-password → 409 "This person has not signed in yet … No password was changed."; request-password-reset 200 (generic) then /reset-password with the token from sys_verification → 409 "…has no local password to reset. Sign in with single sign-on. No password was set." and still 0 sys_account; sign-in/email → 401 (no credential). /phone-number/reset-password → 404 (phone plugin off on this boot, not mounted). set-initial-password and the pending-session refusal (no door mints a pending session locally) — Tier 1 pins only (plugin unit)
    4 ban/unban work without the admin plugin; banned row refused a session pass admin plugin off: ban-user (auditor demo) → 200 banned true; DB banned 1, ban_reason qa, sessions 0; the old token → 401; sign-in → 403 BANNED_USER "You have been banned from this application…"; unban → 200, sign-in 200. banExpiresIn 2 → 403 at once, 200 after 4 s, row unbanned (expired ban lifted at sign-in)
    5 managed 409 sentences point to Setup → Users pass create-user, import-users, organization/invite-member → 409 RESOURCE_CONFLICT, each "…Add the person in Setup → Users instead…" / "Import them in Setup → Users instead…" / "Add them in Setup → Users instead…"
    6 host seam on create / deactivate / reactivate partial live: add and import answer host {notified:false, reason:'no_host'} and the ban doors carry no host key 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, so os dev cannot wire one: blocked{fixture: needs a host-supplied AuthPlugin(environmentUserHost)} → Tier 1 pending-sso-seams + pending-sso-users pins (plugin unit)
    7 the first platform-SSO sign-in binds to the pending row blocked{fixture: no objectstack-cloud OAuth provider locally} Tier 1 implicit-account-linking.test.ts (plugin unit) green
    gate both sides of the platform-admin gate pass non-admin (auditor) add-sso-user, import-sso-users, ban-user → 403 PERMISSION_DENIED "Admin role required"; no evil* row written
    • Items (exact source[] citers among many broad ones, chosen for the touched clauses): identity-auth.admin-lifecycle-operations rev 12 (cites admin-user-endpoints.ts; the ban change), identity-auth.identity-import-wizard rev 4 (cites admin-user-endpoints.ts; managed import refusal), identity-auth.implicit-account-linking-ownership rev 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

    clause verdict evidence
    acceptance[0] pass on the no-admin-plugin kernel (new in this PR): ban persists (banned 1, ban_reason), sign-in refused 403 BANNED_USER, unban restores sign-in — HTTP
    acceptance[9] pass non-admin direct /admin/ban-user → 403 (above); the new add/import-sso doors likewise
    negative[1] pass refusal is at sign-in (server), not a list filter
    others skipped not touched (set-role/remove-user/impersonation/walled create-user)

    identity-auth.identity-import-wizard · rev 4 · PARTIAL

    clause verdict evidence
    acceptance[5] / negative[3] pass admin import-users on managed → 409 (Setup → Users); non-admin import-sso-users → 403
    acceptance[3] / negative[2] pass (sso import analogue) re-import → alreadyPending, no duplicate sys_user per email
    others skipped password import wizard unchanged off managed (not re-driven)

    identity-auth.implicit-account-linking-ownership · rev 5 · PARTIAL

    clause verdict evidence
    acceptance[4] blocked{fixture, no objectstack-cloud provider} pin implicit-account-linking.test.ts green (plugin unit): platform link clears the pending marker, an enterprise link does not
    others skipped
    • Tier 1: @objectstack/plugin-auth pending-sso-users, pending-sso-seams, implicit-account-linking, password-reset-ends-sessions, auth-route-ledger.conformance → 5 files, 167 passed (plugin unit: Hono-mounted plugin routes over an engine double; seams over fakes); @objectstack/platform-objects sys-user-identity-source-label 7 passed (unit). --maxWorkers=1.
    • Probe (rule 8, ~5 min): opposite posture — not managed (port 41142): add-sso-user and import-sso-users → 409 "This environment is not cloud-managed … Create the user with a password or an invitation instead (admin/create-user, admin/import-users). No user was added." Expiry boundary of a ban (above). Nothing found.
    • Notes: a run artifact: one import was sent twice (my first answer was swallowed by a pipe), so the 6-row CSV shown first answered alreadyPending; a fresh 6-row CSV was then driven and is the one cited. The sys_user ban_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 (no sql), 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):

    # criterion verdict evidence
    1 one-hop dotted leaf served (was 400 INVALID_FIELD) pass {'order.status':'cancelled'} → 200 count 5 sum 500; equals the authored nested form {order:{status:…}} and /data GET showcase_qa_an_line?filter={order:{status:'cancelled'}} as the reader (5 rows, sum 500)
    2 orphan / unreadable parent never selected, $ne included; OR $null keeps it pass {'order.status':{$ne:'open'}} → 5/500 (orphan out; /data nested form also 5); {$or:[that, {order:{$null:true}}]} → 6/1500 (orphan in)
    3 inside $or served; one relationship in one conjunction = one condition pass {$or:[{'order.region':'APAC'},{name:'L-cxl-0'}]} → 4/130; {'order.region':'APAC','order.status':'open'} → 3/30
    4 empty parent match → no rows, never unfiltered pass {'order.status':'nope'} → rows []
    5 >1000 matching parents refused 400 INVALID_FILTER, never truncated pass {'order.status':'open'} (1,003 parents) → 400 INVALID_FILTER "…matched more than 1000 records of the related object 'showcase_qa_an_order' (the engine's cap), so the filter was NOT applied…" (reproduced 3×: admin bucketed ×2, reader cbp); reader cbp {$ne:'cancelled'} (1,003) → same 400
    6 stays refused: two hops, $not, $field pass 'order.owner_id.name' → 400 INVALID_FIELD "…traverses 2 relationships…"; {$not:{'order.status':…}} → 400 INVALID_FIELD "…under a $not…"; {$eq:{$field:'name'}} → 400 INVALID_FIELD "…with a { "$field" } comparand…"
    7 related field the caller cannot read → 403 pass reader {'order.secret_note': 'TOPSECRET'} and {…:'NOPE'} → 403 PERMISSION_DENIED "…references field(s) not readable by the caller: secret_note … (filter oracle)…", the same on the engine path, the native path, the cbp cube and the direct /data filter. No value-dependent answer
    8 parent read as the caller (cbp/row scope) pass reader on showcase_qa_an_cbp_line {'order.status':'cancelled'} → engine path, 2/140 (admin 2)
    9 /analytics/sql echo refuses a served leaf pass bucketed {'order.status':'cancelled'} → 400 INVALID_FILTER "cannot render display SQL for the cross-object filter … The query itself is answered by the engine, as the nested-relation condition…"
    • Observation (not a FAIL of this card; for the PM): the two paths disagree on an orphan under $ne. Native (admin, no bucket): {'order.status':{$ne:'open'}} → 6/1500 and {$ne:'cancelled'} → 14/1040, both including the orphan. The served SQL reads WHERE ("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.
    • Items: NO checklist item's source[] cites cross-object-where.ts, objectql-strategy.ts or content/docs/ui/dashboards.mdx exactly. Brief candidates dashboards.cube-query rev 4 and dashboards.analytics-exposure-gate-and-measure-aggregate rev 4 cite other service-analytics files. This is a checklist gap for the anchor card. Driven from dashboards.cube-query for the clauses this fix touches:

    dashboards.cube-query · rev 4 · PARTIAL

    clause verdict evidence
    acceptance[1] / negative[0] pass on the engine path; see observation for native bucketed cube with dotted where reconciles with the /data nested-relation filter as the same reader: cancelled 5/500 = 5/500, $ne open 5/500 = 5/500, NA 10/10 = 10/10. Native path $ne vs /data: 6 vs 5 (orphan), as the observation above
    acceptance[3] pass the parent is read in the caller's context: the reader's FLS refusal (403) and the cbp read scope apply in the dotted where
    others skipped meta/degradation/malformed body not touched
    • Tier 1: @objectstack/service-analytics crossobject-conjunct-refusal, dotted-dimension-unbacked-join-parity, infer-cube-relation-traversal, objectql-read-scope, unlisted-refusal-envelope, where-source-field-gate → 6 files 160 passed (strategy/engine layer: source strategies over engine doubles). @objectstack/rest analytics-nested-relation-filter, analytics-hop-object-reference, analytics-masked-field-gate, analytics-dataset-unlisted-refusal-envelope → 4 files 50 passed (engine plus SecurityPlugin with real ObjectQL/SQLite, driving the service rather than an HTTP server). @objectstack/client envelope-caller-census 21 passed. --maxWorkers=1.
    • Probe (rule 8, ~8 min): boundary of the cap. {'order.region':'NA'} matches EXACTLY 1,000 parents and is served (10/10); 1,003 is refused. The cap is "more than 1,000", as documented. Reader outside FLS (row 7). Opposite path (native) found the observation. Not driven: the dataset runtimeFilter door, the dashboard global filter, and a private-OWD hidden parent (the rest pin covers a hidden parent at engine+security layer).
      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

    • Scratch copy of app-showcase; added 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) — declares owner_id: Field.lookup('sys_user'), rep: Field.user().
    • Seed (prepended to ShowcaseSeedData): sys_user directory row Vera Verify / vera.verify@example.com (non-admin person, to separate
      real resolution from the first-admin NULL-owner handoff), then for each object rows
      X {owner_id:'Dev Admin', rep:'Dev Admin'(, rep_lk)} and Y {owner_id:'Vera Verify', rep:'Vera Verify'(, rep_lk)}.
    • Admin display name: Dev Admin (plugin-auth auth-plugin.ts:3250 OS_SEED_ADMIN_NAME || 'Dev Admin'), confirmed live below.
    • npx objectstack compile in 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).
    • NO deferral/warning at all for 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):
    • X: "owner_id":"Dev Admin","rep":null,"rep_lk":null
    • Y: "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):
    • X: "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).
    • Y: "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_boot ERROR 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 compile exit 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_lk of 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: X owner_id:"Dev Admin", rep:null · Y owner_id:"Vera Verify", rep:"MZjF04Xe1bJnyOhK", rep_lk:"MZjF04Xe1bJnyOhK" · Z owner_id:"Dev Admin", rep:null (admin not yet minted at seed time on a fresh DB).
    HTTP GET /api/v1/data/showcase_vfy_owned: X owner_id:"dwnJD5Hk…"(handoff) · Y owner_id:"MZjF04Xe1bJnyOhK" (resolved) · Z owner_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_user upsert 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 row owner_id:"Dev Admin"/"Vera Verify" verbatim, rep/rep_lk null. showcase_vfy_owned in 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 isolated is 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: what metadata.getObject serves — enriched (engine.registry.getObject, what the #33222 test stub serves) vs authored (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.

    isolated metadata=enriched crm_deal        owner_id "usr_zhang"  rep "usr_zhang"
    isolated metadata=enriched crm_deal_owned  owner_id "usr_zhang"  rep "usr_zhang"
    isolated metadata=authored crm_deal        owner_id "Zhang Wei"  rep "usr_zhang"   <-- the live observation
    isolated metadata=authored crm_deal_owned  owner_id "usr_zhang"  rep "usr_zhang"
    single   metadata=enriched crm_deal        owner_id "usr_zhang"  rep "usr_zhang"
    single   metadata=authored crm_deal        owner_id "Zhang Wei"  rep "usr_zhang"   <-- the live observation
    (single authored/enriched crm_deal_owned: owner_id "usr_zhang")
    

    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 … resolveObjectDefinition block 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): returns metadata.getObject(name) whenever it has fields; 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 no owner_id (it is added by objectql applySystemFields at registration: lookup→sys_user, system:true), so owner_id never enters references, is never probed, never deferred, never logged, and is written verbatim.
    • The loader already knows its definition may be the authored one: seedRowTenantColumn/carriesOrganizationColumn consult resolveInjectedSystemColumns(def).tenant, and warnOnUndeclaredSeedColumns admits resolveInjectedSystemColumns(def).names — but the reference graph does not consult .owner.
    • Declared owner_id (Control A) is in fields → resolved; Field.user() and Field.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)

    1. Isolated: an app seed dataset on 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.
    2. Isolated: the org-create replay runs before better-auth writes the founder's sys_member row (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.
    3. Fresh single boot: the app seed runs before the dev admin is minted, so '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').
    4. A verbatim injected owner_id ('Dev Admin') is non-NULL, so the handoff never claims it: the row is owned by a non-existent user id.

    Verdict: CONFIRMED (both postures; engine-layer for the isolated contrast). Regression vs 18.4: NO (identical code).

    Ended 2026-11-15T10:41Z.

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    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: NAME seed 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).

    Extracted: #33791 · platform-core.seed-mode-matrix · card #33207 acceptance (owner_id NAME resolves)
    Extracted: #33788 · card #33238 (no checklist item) · observed beside the clauses
    Extracted: #33790 · records-forms.field-unique-enforcement · observed beside the clauses
    Extracted: #33792 · dashboards.cube-query · observed beside the clauses
    Extracted: #33794 · card #33206/#33207 · acceptance 5 (docs tenantField row)
    Parked-on: #33761 · coverage gaps (#33250 opt-in, renamedFrom carry, hook-refusal and duplicate locale) and accuracy notes
    
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  5. added a commit that references this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions