Skip to content

QA run · smoke:npm-18.5.0 (23/23) · b914e724 · 2026-11-15 · 21 PASS / 0 PARTIAL / 2 FAIL / 0 BLOCKED / 0 NOT-RUN #33900

Closed

Description

@objectstack-fleet

qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB

Post-release smoke of the PUBLISHED 18.5.0 (npm), real user paths, under checklist-test §6. Asked by the maintainer, 2026-11-15 13:26Z, verbatim: 「18.5 已发布」. Shape copied from the 18.4.0 record #33105 (cells A–F, versions bumped). Wave anchor #33761.

ENVIRONMENT

  • Subject: @objectstack/*@18.5.0 and create-objectstack@18.5.0, from npm.
    • dist-tag latest = next = 18.5.0. Published 2026-11-15T13:02:20.072Z per npm view @objectstack/spec time; 18.4.0 was 2026-11-13T12:30:15.590Z.
    • Release commit b914e7247f692a79804f9b7eba278add46d57625 (tag @objectstack/spec@18.5.0).
    • Everything under test was installed from the registry into /tmp/smoke185, outside the repo. No workspace build and no link:.
  • Source checkout: used only to read docs, at the release commit (git show b914e724:PATH). main was read at 45dee177b for the re-judge.
  • Tools:
    • Node v22.23.4, npm 10.9.9, pnpm 10.28.0 in the scaffolds (the scaffolder's pick).
    • PostgreSQL 16.15, a local cluster on port 41119.
    • Chromium through Playwright.
  • Ports: 41100–41103 (dev, production start, pg app) and 41120–41124 (upgrade, probe scaffold). One file DB per cell.
  • Run: 2026-11-15 13:28–13:47 UTC. Two runner agents in parallel, S1 (A, B, C, E) and S2 (D, F), each sequential within its cells.

A. NEW USER ONBOARDING (docs at b914e72: getting-started/your-first-project.mdx, unchanged since 181ad7d)

A1 PASS. npm create objectstack@18.5.0 my-app -- --skip-skills: exit 0, 9 s, banner "Create ObjectStack v18.5.0", installed with pnpm (26 template files). All 9 @objectstack pins in package.json are exactly 18.5.0 (spec, runtime, plugin-hono-server, connector-rest/-openapi/-mcp; dev: cli, skills, verify); cli, spec, runtime resolve 18.5.0 in node_modules and console resolves @objectstack+console@18.5.0. pnpm-lock.yaml packages section: 60 @objectstack entries, all 18.5.0 (18.4.0: 59). No .claude dir written.
A2 PASS. npx -y create-objectstack@18.5.0 skillapp (skills on): exit 0, 10 s, "Installing AI skills ... from @objectstack/skills@18.5.0", "Found 11 skills". 11 skills in .claude/skills, names and content identical (diff -rq) to node_modules/@objectstack/skills@18.5.0 dist/skills; only the catalog README.md is not copied.
A3 PASS. npx os validate (my-app): exit 0, 68 author-time rules (18.4.0: 65), 1 object, 2 fields, 1 app, 1 view, 3 plugins; "Validation passed (145ms)".
A4 PASS. npx os dev --ui -p 41100: compiles dist/objectstack.json (3.2 KB), "Server is ready" in about 12 s, Driver SqlDriver(better-sqlite3) on .objectstack/data/objectstack.db, 43 plugins including ConsoleUI, dev admin admin@objectos.ai / admin123 seeded. 0 WARN/ERROR lines on boot. GET /api/v1/discovery 200.
A5 PASS. GET /_console/ 200 text/html, 24195 bytes. Entry chunk assets/index-DPeAgiy5.js 200 application/javascript, 391760 bytes, byte-identical (cmp; sha256 b1ab01ff…8a610c8d both sides) to the published @objectstack/console@18.5.0 dist (npm pack into /tmp/smoke185/s1/consolepkg). The served index.html differs from dist/index.html only by the server-injected description/og/robots meta tags, the base href, the title and the nonce'd capabilities/inline scripts. (Entry chunk 475017 → 391760 bytes vs 18.4.0.)
A6 PASS. Real browser (Playwright chromium, two fresh contexts): /_console/ goes to /_console/login (1.6 s and 1.2 s to network idle); signing in as the dev admin through the form lands on /_console/home ("Get your system ready" checklist 1 of 6 done incl. Default currency, then "Good afternoon, Dev Admin."; Your apps 1: Main). After sign-in: 0 console errors, 0 responses >= 400, both runs. Before sign-in: the anonymous GET /api/v1/auth/get-session 401 only (same as 18.4.0, observation).
A7 PASS. The docs' CRUD (section 4) on :41100: sign-in 200; POST /api/v1/data/my_app_note 201 (record with organization_id, owner_id); GET ?select=title&sort=-created_at&top=10 200 (total 1, records [{title}]); GET by id 200; PATCH 200; DELETE 200 success true (recycleBinEntryId returned); GET 404 RECORD_NOT_FOUND. Anonymous GET 401 UNAUTHENTICATED. POST /api/v1/auth/sign-up/email 403 SELF_REGISTRATION_CLOSED ("audience posture invite_only").
A8 PASS. Record created through the Console UI at /_console/apps/com.example.my-app/my_app_note (starter app Main, Notes / All Notes): New opens the "Create Note" dialog, fill Title, Create gives POST /api/v1/data/my_app_note 201, toast 'Note "Created in Console UI 18.5" created', the record panel opens (?recordId=8ro-m45EzsoC8Nxd) with Activity 1 ("Created Note …", Dev Admin); server read-back GET /api/v1/data/my_app_note/8ro-m45EzsoC8Nxd 200 with that title. 0 console errors, 0 responses >= 400 after sign-in. No currency prompt over the page (currency sits in the Home checklist, as in 18.4.0).

B. STUDIO (same dev boot, :41100)

B1 PASS. /_console/studio loads the App Builder (1.75 s to network idle): "My packages (writable)" section (empty, "New package (writable base)"), Organization flows, Environment catalog, and the scaffold's My App (com.example.my-app) as Installed read-only ("0 customized, 0 switched off"). Opening My App goes to /_console/studio/com.example.my-app/data?surface=object:my_app_note and shows the Note object (2 fields +8 system, Read-only banner) and the record created in A8 ("Created in Console UI 18.5", owner Dev Admin, 1 record). 0 console errors, 0 responses >= 400.
B2 PASS. Authoring loop in a real browser: New package "Smoke Tracker" (only Display name filled; POST /api/v1/packages 201, lands on /_console/studio/com.default.smoke-tracker/data, "No drafts pending publish") → New object "Ticket" (identifier auto-filled as ticket; the dialog now also carries a "Record sharing (OWD)" picker defaulting to "Private — owner only"; "Save as draft": PUT /api/v1/meta/object/smoke_tracker_ticket?mode=draft&package=com.default.smoke-tracker&surface=studio 200, "Draft · 1 unpublished", 1 field Name +8 system, "Changes · 1") → Publish → "Pending changes" dialog (1 item · 1 object, Ticket New, includes + Name) → Publish all (POST /api/v1/packages/com.default.smoke-tracker/publish-drafts 200), toast "Published 1 item in this package / Members can use it once a permission set grants them access. / Open Access" → reload shows "No drafts pending publish" and the live Records grid. REST on the new object as the dev admin: POST /api/v1/data/smoke_tracker_ticket 201 (twice), list 200 total 2 (T-1, T-2); anonymous list 401. 0 console errors and 0 responses >= 400 across the loop.

C. PRODUCTION DEPLOY PATH (A1's scaffold, OS_AUTH_SECRET and OS_SECRET_KEY set, fresh SQLite file /tmp/smoke185/s1/cdb/prod.db)

C1 PASS. os build exit 0 (dist/objectstack.json 3298 B / 3.2 KB); OS_DATABASE_URL=file:FRESH os migrate apply --yes exit 0 (94 tables created, 0 changes, 2 runtime-owned partial unique indexes; "birth marker written (shape generation 1, platform 18.5.0)"); os start --artifact ./dist/objectstack.json --port 41101: Mode production, health answering in about 8 s, 0 WARN/ERROR log lines on the start (one "⚠ StorageServicePlugin using local driver" console advisory, see observations); GET /api/v1/health 200 {"status":"ok","version":"18.5.0"}.
C2 PASS. First sign-up admitted (POST /api/v1/auth/sign-up/email 200, session token), the second 403 SELF_REGISTRATION_CLOSED (and that address then cannot sign in, 401); no dev admin in production (admin@objectos.ai sign-in 401 INVALID_EMAIL_OR_PASSWORD).
C3 PASS. CRUD as the first admin: create 201, list 200 (total 1), get 200, patch 200, delete 200, get 404 RECORD_NOT_FOUND; anonymous list 401. /_console/ 200 text/html; real-browser sign-in as the first admin lands on /_console/home ("Good afternoon, Owner.", app Main) with 0 console errors and 0 responses >= 400 after sign-in (anonymous get-session 401 before, as in dev). (A first browser attempt that typed the dev-admin credentials timed out on the login page: automation self-check, the script's hard-coded credentials, not the product; rerun with the owner's credentials passed.)

E. POSTGRESQL (16.15 local cluster in /tmp/smoke185/s1/pg, port 41119; pgapp = a copy of A1's scaffold, dev port 41102)

E1 PASS. Before pg is installed: os dev -p 41102 -d postgres://…/smoke185 exits 1 with the remedy "The database client package pg is not installed, so no connection was attempted. It is an OPTIONAL install of @objectstack/driver-sql … npm install pg (pnpm add pg / yarn add pg) — then start again." Observation (not filed, unchanged from 18.3.0/18.4.0): the remedy is preceded by knex's raw "Cannot find module 'pg'" and a 6-line require stack, and starts with "connect failed — Knex: run $ npm install pg --save".
E2 PASS. After pnpm add pg (8.23.1): "Driver: SqlDriver(pg)", ready in about 17 s, 42 plugins (43 on SQLite), 0 WARN/ERROR at ready; sign-in 200; docs CRUD 201/200 (total 1)/200/200/200/404; /_console/ 200 text/html; real-browser sign-in lands on /_console/home with 0 console errors and 0 responses >= 400 after sign-in, and a record created through the Console UI (POST 201, toast 'Note "Created in Console UI on pg 18.5" created', record panel opens). Studio loop on pg (smoke185r1): New package 201, Save as draft PUT 200, Publish all → sys_metadata row state active.
E3 FAIL (product defect, NEW, sibling of #26630; pre-existing in 18.4.0, not a regression). #26630's own indexes hold: pg_indexes shows uniq_sys_setting_organization_id_namespace_key_scope_user_id over (organization_id, namespace, key, scope, COALESCE(user_id, '')) and uniq_sys_notification_preference_a22d7d27 over (organization_id, COALESCE(user_id, ''), topic, channel), same as #33105. But the 0-DATABASE_ERROR clause does not hold: every boot prints one [sql-driver] DATABASE_ERROR — the backend refused a raw statement (2BP01) … cannot drop index idx_sys_metadata_overlay_active because constraint idx_sys_metadata_overlay_active on table sys_metadata requires it. It is printed AFTER "Server is ready", on the process's first GET /api/v1/meta/_drafts (any Console home load makes it), so a count taken at ready reads 0 (a restart with only curl CRUD read 0 too). Measured on 3 fresh databases (smoke185, smoke185r1, smoke185r2) and 3 restarts over smoke185r1, 6 of 6 boots that served /api/v1/meta/_drafts; 0 on boots that did not. The index stays the declared fallback: pg_indexes idx_sys_metadata_overlay_active = UNIQUE (type, name, package_id, bundle_member) held by a UNIQUE CONSTRAINT (pg_constraint contype u), not the runtime partial form (type, name, COALESCE(package_id,''), COALESCE(bundle_member,'')) WHERE state='active' that SQLite carries (read from sqlite_master on A's dev DB). Consequence measured in rolled-back transactions: on pg, a second ACTIVE row for the published smoke_tracker_ticket (same type, name, package_id, NULL bundle_member) gives INSERT 0 1 (2 active rows), and two ACTIVE package-less rows for one (type, name) are both admitted; the same two inserts on SQLite are refused ("UNIQUE constraint failed: index 'idx_sys_metadata_overlay_active'"). No [metadata-protocol] degradation line is printed. Baseline: a create-objectstack@18.4.0 scaffold on a fresh pg database (smoke184, port 41103, health 18.4.0) prints the same line after a Console home load and leaves the same index, so #33105's E3 0-count missed it (count taken before the trigger, most likely). The 18.5.0 data of the restart cell itself survived: a record and the session cookie read back 200 after restart.

D. UPGRADE 18.4.0 → 18.5.0 WITH REAL DATA (dir /tmp/smoke185/s2, ports 41120–41123)

D1 PASS. App from create-objectstack@18.4.0 (npx -y create-objectstack@18.4.0 app184 --skip-skills, exit 0, 19 s; 9 pins 18.4.0, 60 @objectstack lock entries all 18.4.0) on its default file DB (.objectstack/data/objectstack.db + the dev telemetry sibling objectstack.telemetry.db). To give 18.5.0's one named data step something to do, the app got one approval flow (record-after-insert on app184_note → one approval node routed to org_membership_level owner) and requires + 'approvals' (os validate exit 0) before any data was written. os dev on 18.4.0, port 41120, health 18.4.0. Written over HTTP on 18.4.0: dev admin sign-in 200; POST /api/v1/auth/admin/create-user 200 (upg.user@example.com, mustChangePassword true), that user signs in 200; POST /api/v1/data/app184_note 201 (f4WyDQs897Wfsp36), which opened a pending sys_approval_request carrying payload_json; PUT /api/settings/branding {workspace_name:"Smoke v18.4"} 200 (source tenant). The 18.5.0 datum, read raw from the telemetry sibling: 1 sys_audit_log copy (object sys_approval_request) and 1 sys_activity row whose copies hold payload_json (the side copy 18.5.0's os migrate audit-side-copies removes, cli CHANGELOG 4e1d327). Server stopped by process group, port and DB file free. Bumped all 9 @objectstack pins to 18.5.0; pnpm install exit 0 (only the usual 6 deprecated-subdependency WARN, no peer warning; 60 lock entries, all 18.5.0); os --version @objectstack/cli/18.5.0; os validate exit 0; os build exit 0. upgrading.mdx at b914e72 has no v18.5.0 row (see F1) but does name one 18.5.0 step in its Per-release section ("Upgrading from 18.4.0 or earlier: run os migrate audit-side-copies once, a dry run first and then --apply"). Run: generic loop os migrate meta --from 18 exit 0 (no step 18 → 18, as printed) and --from 17 exit 0 (the 18-5 page's command; lists the protocol-18 entries); os migrate plan exit 0 (8 tables to create — the telemetry-routed tables, see O-D2 — 3 safe index changes, 1 destructive); and every subcommand npx os migrate --help lists on 18.5.0, read-only/dry-run, before the 18.5.0 boot: account-issuer, activity-changed-fields, audit-key-material, audit-mail-bodies, audit-metadata-bodies, audit-side-copies, blank-multi-values, blank-single-values, comment-parent-pair, comment-reactions, duplicates, files-to-references, multi-value-columns, option-codes, organization-ownership, packageless-overlays, recorded-by, resume, security-catalog-overlays, stored-expressions, stored-references (and --dev), summary-nulls, text-scalars, unmapped-columns --object app184_note, value-shapes: all exit 0. recompute-home-amounts --object app184_note exit 1 (correct refusal: the object declares no home amount) and record-currency-codes exit 2 (oclif: --code/--field/--object required) — neither applies to this app. os dev 18.5.0 on the same file (port 41121): ready, health 18.5.0, 0 DATABASE_ERROR lines (one "[schema-drift] auto-reconciled replace_unique_index on sys_connector_connection.connector_package", the #31699 key widening the CHANGELOG names). Admin sign-in 200; the created user with its original password 200 (wrong password 401); the note reads back 200 with title and body; branding.workspace_name reads "Smoke v18.4" source tenant; the approval request is still pending; sys_audit_log as admin 200 serves the approval-request copy without payload_json (read-time redaction). After the boot: os migrate audit-side-copies bare → "0 of 0 … ✓ Nothing to remove" (see O-D1); with NODE_ENV=development → dry run "2 of 2" (sys_audit_log 1, sys_activity 1), --apply --yes exit 0 "removed … from 2 of 2", second --apply "0 of 2 … Nothing to remove" (idempotent); raw read: 0 copies hold payload_json afterwards. os migrate apply --yes exit 0 (8 tables created, 0 safe left — the dev boot had auto-applied them — 1 destructive skipped); second plan: 0 tables, 0 safe, 0 needs-confirm, 1 destructive: drop_index sys_approval_action.idx_sys_approval_action_actor_id (orphaned: 18.5.0's plugin-approvals declares (actor_id, organization_id) and (acted_as, organization_id) instead; see O-D3). apply --allow-destructive exit 0 (1 applied), third plan "Physical schema is in sync with metadata — nothing to migrate". A further 18.5.0 boot after the applies: user 200, admin 200, note 200, setting "Smoke v18.4", 0 DATABASE_ERROR.

D2 PASS (the same upgrade on the untouched default scaffold, as #33105 D1 ran it). create-objectstack@18.4.0 app184b, no edits; os dev 18.4.0 (41122, health 18.4.0): create-user 200, its sign-in 200, note 201, PUT branding "Smoke v18.4 B" 200. Stopped; pins → 18.5.0, pnpm install exit 0 (60 entries all 18.5.0), validate 0, build 0, meta --from 18 exit 0, plan exit 0 (8 tables, 1 safe uniq_sys_connector_connection_418b410f, 0 destructive), audit-side-copies dry run 0 of 0 bare and with NODE_ENV=development (no approvals composed, nothing to remove). os dev 18.5.0 (41123): health 18.5.0, 0 DATABASE_ERROR, admin 200, the user with its original password 200, note title reads back, setting "Smoke v18.4 B" tenant. os migrate apply --yes exit 0 (8 tables, 0 changes), second plan "in sync — nothing to migrate" bare and with NODE_ENV=development: 0 changes.

D OBSERVATIONS

F. RE-JUDGE AND PROBES

F1a PASS (#33105 D2 / card #33106 re-judged, on the docs a reader gets). At origin/main 45dee17: upgrading.mdx "Per-release specifics" has the row v18.5.0 | Upgrade checklist — 18.5.0 → /docs/releases/v18/18-5#upgrade-checklist (line 468), and content/docs/releases/v18/18-5.mdx exists (748 lines, "## Upgrade checklist" → "### 18.5.0" with steps 1–4). Both landed in c87e2ad (docs(releases): 18.5.0 release notes, the v18 line overview and its upgrading row, #33823; card #33798 closed), committed 2026-11-15T12:14Z — 48 min BEFORE the npm publish (13:02Z), the first release of the last four where the page exists when the packages do. At the release commit b914e72 itself (11:34Z) there is still no v18.5.0 row (newest v18.4.0) and no 18-5.mdx (18-0…18-4 + index), while releases/index.mdx at b914e72 line 22 already says "current series: 18.5.0, released 2026-11-15" — the tag names a page it does not carry (see O-F1). The 18.4.0 row and 18-4.mdx (the #33105 D2 subject) are present at both b914e72 and 45dee17; #33106 closed completed 2026-11-13T22:32Z.

F1b FAIL (release notes / docs, not release-blocking). BREAKING reachability. git log --oneline 181ad7d4..b914e724 | grep -c '!:' = 63, not 59 (all 63 are conventional type(scope)!: subjects; same count with --no-merges and --first-parent). From upgrading.mdx at b914e72: 0 of 63 reachable through a row (no v18.5.0 row); the page names one 18.5.0 step only ("Upgrading from 18.4.0 or earlier: os migrate audit-side-copies"). From upgrading.mdx at main → 18-5.mdx: 62 of 63 cited on the page by commit sha (e.g. org-scoped seed 47a3b95 #33222 at lines 345 and 745, "Check seed hooks under a walled posture … ctx.api.sudo()"). The one not reachable: ac0b9a5 fix(plugin-audit)!: seal a window into checkpoints of at most 10,000 rows … (#33637, merged 10:51Z, an ancestor of b914e72), declared "Clause-②: yes (narrowing) — os audit verify reports a row id that two checkpoints list as the new chain fault listed_twice and fails the run, where the 18.4.0 verifier accepted it". The published @objectstack/plugin-audit@18.5.0 ships it (listed_twice in dist/index.js, .mjs, .d.mts) but its CHANGELOG.md has 0 hits and 18-5.mdx has none (no listed_twice / checkpoint / #33637 / #31908); its changeset .changeset/31908-p4b2-bounded-checkpoints.md is still pending at the tag. It is one of 11 changesets still in .changeset/ at b914e72 whose commits (10:36–11:18Z) are in the tagged code: 31908-p4b2-bounded-checkpoints, 33186-managed-add-people-actions, 33609-related-list-parent-lookup-page, 33649-messaging-preferences-emitting-organization, 33660-ai-model-picker-cost-multiplier, 33689-ai-action-confirmation-elicited (the second !, 1e65a38; the 18-5 page does cover it as "Announced, not yet at any door", but spec@18.5.0's CHANGELOG has 0 "elicit" hits), 33724-install-relaxes-declared-not-null, 33739/33753/33754 (scenarios), a2-skills-docs-32678-32825. Same class as #29957 (18.3.0: a shipped narrowing with no CHANGELOG line because the Version Packages PR was merged without regenerating).
Repro: (1) git show b914e724:.changeset/31908-p4b2-bounded-checkpoints.md → exists, fix(plugin-audit)!: … os audit verify fails on a row two checkpoints list; git merge-base --is-ancestor ac0b9a5f9 b914e724 → true. (2) npm pack @objectstack/plugin-audit@18.5.0, grep -l listed_twice package/dist/* → 3 files; grep -c listed_twice package/CHANGELOG.md → 0. (3) git show 45dee177b:content/docs/releases/v18/18-5.mdx | grep -c -E 'listed_twice|ac0b9a5|33637' → 0. Expected: every ! change in the published 18.5.0 packages is named in the 18.5.0 CHANGELOG and reachable from the 18-5 page. Actual: one shipped narrowing (os audit verify now fails on a chain 18.4.0 accepted) is named nowhere in 18.5.0's notes; ten more shipped changes are likewise missing from the 18.5.0 CHANGELOGs.
Disposition: release-process / docs defect, recurrence of #29957 (closed completed). Dedupe (open+closed): listed_twice (#33773 skills follow-up, #31908 epic — neither is about the 18.5.0 notes), 31908-p4b2, version packages changeset not consumed (#29957 closed, #25638 closed, #29933 closed), changesets pending at the release commit, 18.5.0 release page (#33798 closed = the page itself). No card for 18.5.0. Card draft text: see CARD-DRAFT F1b below.

F2 PASS. On a fresh 18.5.0 scaffold (npx -y create-objectstack@18.5.0 probe185 --skip-skills exit 0; 9 pins exactly 18.5.0, 60 lock entries all 18.5.0): npx os doctor exit 0, "✅ Environment is healthy and ready for development!", 0 ⚠ / ✗ lines (Node v22.23.4, pnpm 10.28.0, TypeScript 5.9.3, platform protocol covered, no circular deps, all objects referenced, views valid; test-coverage and deprecations skipped as monorepo-only). Bare npx os prints the help with VERSION @objectstack/cli/18.5.0 linux-x64 node-v22.23.4.

F3 PASS (#33250 headline, PR #33369 df9fe94). Own 18.5.0 scaffold probe185 (F2's), os dev port 41124, health 18.5.0, 0 DATABASE_ERROR. Authored from rls.mdx / sharing-rules.mdx / error-catalog.mdx at b914e72: master probe185_order (sharingModel public_read: every member reads, only the owner edits), master probe185_vault (private), detail probe185_line (controlled_by_parent, master_detail order required, sharing: { controlledByParent: { writeRequiresMasterRead: true } }), control detail probe185_cline (same, no opt-in), detail probe185_vline (opted in, master vault); one permission set probe185_detail_writer (allowRead only on both masters; read/create/edit, no delete, on the three details). os validate exit 0. Personas made by the dev admin with POST /api/v1/auth/admin/create-user (membershipCreated true, role member) and changed their forced password (POST /api/v1/auth/change-password 200; before that every data call is 403 PASSWORD_RESET_REQUIRED); A and B granted the set by POST /api/v1/data/sys_user_permission_set; C no set. Masters O1 (order) and V1 (vault) created by the admin. Run twice, same answers both times: A GET O1 200, A PATCH O1 403 PERMISSION_DENIED (reads the master, no edit on it); A POST probe185_line {order:O1} 201; A PATCH that line 200; A PATCH an admin-owned line 200; A DELETE a line 403 (no allowDelete). Control without the opt-in: A POST probe185_cline {order:O1} 403 "[Security] Access denied: insert on 'probe185_cline' requires edit access to its master record (no edit permission on master 'probe185_order')", and A PATCH an admin-created cline 403 (same sentence, update); the admin's own cline insert 201. Master not readable: A GET V1 404 RECORD_NOT_FOUND; A and B POST probe185_vline {vault:V1} 403 "insert on 'probe185_vline' requires read access to its master record (master 'probe185_vault' not readable by this user (row-level security or record sharing))"; B PATCH the admin's vline 404 (the row is hidden with its master); B POST probe185_line on the readable O1 201 (same set, so the refusal is the master read, not the grant). C (no set): GET O1 403 and POST line 403. Both sides of the gate measured on the server; no write got through where the contract refuses it.

F4 PASS (#33512 headline, 498c967, fixes #33335). Same probe185 boot. Detail rows: 7 probe185_line rows (5 under the open order O1, amounts summing 40; 2 under a cancelled order O2, 100 + 200). probe185_line is controlled_by_parent, so the query takes the engine-aggregate path (dashboards.mdx at b914e72, "Filtering on a Related Record's Field"); the answers carry no sql member, as on that path. As the dev admin, POST /api/v1/analytics/query {cube:"probe185_line", measures:["count","amount_sum"]}: no where → count 7 / 340; where {"order.status":"cancelled"} → 200, count 2, amount_sum 300; where {"order.status":{"$ne":"cancelled"}} → 200, count 5 / 40. The data door's nested-relation filter agrees row for row: GET /api/v1/data/probe185_line?filter={"order":{"status":"cancelled"}} → total 2 (L-O2-100, L-O2-200, sum 300), and {"order":{"status":{"$ne":"cancelled"}}} → total 5 / 40. Persona A (F3's, reads orders through public_read, reads lines by its set) gets the same 2 / 300; persona C (no read on the line) 403 PERMISSION_DENIED. Refusals the docs list: {"$not":{"order.status":"cancelled"}} → 400 INVALID_FIELD ("cannot evaluate the cross-object filter … under a $not"); a two-relationship path order.owner_id.name → 400 INVALID_FIELD ("traverses 2 relationships … one relationship deep"); a bare $field comparison → 400 INVALID_FILTER (the bare-$field spelling refusal). A dimension through the relationship (dimensions ["order.status"]) → 200, cancelled 2 / open 5. Over 1,000 parents: 1,100 cancelled orders seeded by six POST /api/v1/data/probe185_order/createMany calls (201 each; one 1,100-record call → 400 BATCH_TOO_LARGE max 200, as data-api.mdx documents), 1,101 cancelled in all. Then the same {"order.status":"cancelled"} query → 400 INVALID_FILTER "the nested-relation condition … matched more than 1000 records of the related object 'probe185_order' (the engine's cap), so the filter was NOT applied …", for the admin and for persona A, and the data door's nested filter → 400 INVALID_FILTER with the same sentence (find). A narrowed condition {"order.name":"O2"} → 200, 2 / 300. Nothing is truncated: every answer is the exact count or a 400.

OBSERVATIONS (F2–F4)

  • O-F4. On the engine-aggregate path, a dotted analytics where whose first segment is not a relationship of the cube answers 403 PERMISSION_DENIED to the platform admin instead of 400 INVALID_FIELD: {"nosuch.status":"x"} → 403 "[Analytics] Access denied: reading "nosuch" is not permitted for this user."; {"order.owner.name":"x"} (no owner field on the order; owner_id is the field) → 403 'reading "order__owner" is not permitted'. A wrong leaf on a real relationship gets the helpful 400 INVALID_FIELD ("… known fields of 'probe185_order': …"). A refusal either way, so no data reaches anyone; the class is wrong and points a developer at permissions instead of the spelling. Dedupe: analytics PERMISSION_DENIED unknown relationship dotted, analytics dotted where unknown relation 403, ObjectQLStrategy cross-object filter 403 instead of 400 (nearest analytics native: a hand-authored cube dotted filter naming a related column the related object lacks answers 500 DATABASE_ERROR, not 400 INVALID_FIELD #31881 closed, the native-SQL hand-authored cube case) — not filed.
  • O-F3. Adding a permission set to the 18.5.0 starter makes os validate warn nav-object-ungranted on the starter's own Notes entry (no set grants read on probe185_note) — expected from the rule, noted because the starter has no set of its own.
  • O-F3b. A user made by POST /api/v1/auth/admin/create-user carries mustChangePassword: every data call answers 403 PASSWORD_RESET_REQUIRED until POST /api/v1/auth/change-password. Sign-in itself is 200 (D1 and D2 sign-ins were checked as sign-ins only). Expected behaviour, recorded for the next runner.

FAIL REPRODUCTION RULES

  • E3 (reproduced on 3 fresh pg databases and 3 restarts; automation self-check: the line is server-side and is triggered by one plain curl GET, no browser needed):

    1. npm create objectstack@18.5.0 my-app -- --skip-skills; cd my-app; pnpm add pg (8.23.1).
    2. On an empty PostgreSQL 16 database: npx os dev -p PORT -d postgres://postgres@127.0.0.1:PGPORT/DB. Wait for "Server is ready" (0 DATABASE_ERROR lines so far).
    3. POST /api/v1/auth/sign-in/email {"email":"admin@objectos.ai","password":"admin123"} → 200 (still 0 lines).
    4. GET /api/v1/meta/_drafts with that cookie → 200 {"drafts":[]}. The server log now has [sql-driver] DATABASE_ERROR — the backend refused a raw statement (2BP01) … cannot drop index idx_sys_metadata_overlay_active because constraint idx_sys_metadata_overlay_active on table sys_metadata requires it; PostgreSQL's own log has the matching ERROR / HINT "You can drop constraint … instead" / STATEMENT DROP INDEX IF EXISTS idx_sys_metadata_overlay_active. Stop and start again, repeat 3–4: the line comes back on every boot.
    5. psql: select indexdef from pg_indexes where indexname='idx_sys_metadata_overlay_active' → UNIQUE (type, name, package_id, bundle_member); select contype from pg_constraint where conname='idx_sys_metadata_overlay_active' → u.
    6. In a transaction (rolled back): insert a copy of an ACTIVE sys_metadata row under a new id with state 'active' → INSERT 0 1, two ACTIVE rows for one overlay key; two ACTIVE rows ('object','probe_dup', NULL package_id, NULL bundle_member) → both admitted. The same inserts on the SQLite dev DB of the same scaffold → "UNIQUE constraint failed: index 'idx_sys_metadata_overlay_active'".
      Expected: on PostgreSQL the overlay ACTIVE key is the partial NULL-safe UNIQUE (type, name, COALESCE(package_id,''), COALESCE(bundle_member,'')) WHERE state='active', as on SQLite, and no DATABASE_ERROR line; or, if it cannot be built, the ADR-0120 D4 [metadata-protocol] degradation line. Actual: the declared NULL-distinct constraint stays, which enforces nothing for the NULL bundle_member that nearly every row carries; the migration reports nothing.
      Mechanism (read at b914e72): the PostgreSQL: the NULL-safe row identity of sys_setting and sys_notification_preference never lands — DROP INDEX is refused by the declared UNIQUE constraint (2BP01) and CREATE UNIQUE INDEX IF NOT EXISTS then no-ops as success (18.2.0) #26630 fix (PR fix(metadata-protocol): land the NULL-safe sys_setting / sys_notification_preference identity on PostgreSQL, and never report a no-op as created #26782, cee4b16) added a PostgreSQL arm to probeThenReplaceIndex in packages/metadata-protocol/src/migrations/partial-index-probe.ts that frees a constraint-held name (ALTER TABLE … DROP CONSTRAINT IF EXISTS) and verifies the definition by read-back; it is selected only when the caller passes table and client. sys-setting-identity-index.ts:527 and notification-preference-identity-index.ts pass them; overlay-index.ts ensureOverlayStateIndex (line 351) calls probeThenReplaceIndex with only indexName/probeIndexName/buildSql, so it takes the dialect-blind order: DROP INDEX refused (2BP01, swallowed but printed), CREATE UNIQUE INDEX IF NOT EXISTS under the held name is a no-op, status 'created', reportDegradation never runs.
  • F1b: see the "Repro:" line under F1b above.

DISPOSITION OF FAILS

RE-CHECKED PRIOR 18.4.0 SMOKE FAILURES (#33105)

FIXTURE GAPS AND HANDOVER

  • Fixture gaps: none. S2 authored an approval flow (D1) and the F3/F4 probe objects and set; their sources are kept in /tmp/smoke185/s2/app184 and /tmp/smoke185/s2/probe185.
  • Not-run handover: none.
  • Security: no authentication or authorization finding.

OBSERVATIONS (not filed)

  • O1. Before sign-in the Console's anonymous GET /api/v1/auth/get-session answers 401 and logs one console error (dev, prod and pg; same as 18.3.0/18.4.0).
  • O2. os start (production, C1) prints one "⚠ StorageServicePlugin using local driver (.objectstack/data/uploads) — switch to S3/GCS/Azure for production" advisory (not a WARN log line), and the production Console home shows a matching "…this server's disk. Hide" notice. Not recorded in QA run · smoke:npm-18.4.0 (22/22) · 181ad7d4 · 2026-11-13 · 21 PASS / 0 PARTIAL / 1 FAIL / 0 BLOCKED / 0 NOT-RUN #33105; reads as intended guidance.
  • O3. os migrate apply on a fresh production file warns during its schema boot: "Core service missing … auth" and "System started with degraded capabilities. Missing core services: auth", "sys_metadata_activation is registered but could not be read", and "sys_invitation:copy_invitation_link has NO handler" (the last two as QA run · smoke:npm-18.4.0 (22/22) · 181ad7d4 · 2026-11-13 · 21 PASS / 0 PARTIAL / 1 FAIL / 0 BLOCKED / 0 NOT-RUN #33105 O5). The production start that follows has 0 WARN lines.
  • O4. Studio's New object dialog now carries a "Record sharing (OWD)" picker defaulting to "Private — owner only" ("Required to publish"), and a new object starts with one Name field; the publish toast adds "Members can use it once a permission set grants them access. Open Access". New since QA run · smoke:npm-18.4.0 (22/22) · 181ad7d4 · 2026-11-13 · 21 PASS / 0 PARTIAL / 1 FAIL / 0 BLOCKED / 0 NOT-RUN #33105's B2 wording; the loop is unchanged.
  • O5. The dev banner "Dev admin … seeded on empty DB" prints on every restart over a non-empty database (pg restart: sys_user count stays 1, nothing re-seeded). Wording only.
  • O6. On pg, Studio "Publish all" took longer than the 2.5 s my script waited (spinner in the screenshot); after reload the object was active. Automation timing, not a defect.
  • O7. A3 rule count 65 → 68; A5 entry chunk 475017 → 391760 bytes; A1 lock entries 59 → 60.

Not-run: none. Fixture gaps: none. No authentication or authorization finding.

  • End 2026-11-15 13:45Z. All S1 servers and the PG cluster stopped; ports 41100–41119 free.
  • The observations from cells D and F (O-D1 to O-D3, O-F1, O-F3, O-F3b and O-F4) are listed under their cells above.

Activity

  1. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB

    Close-out 2026-11-15T13:50Z. Wave anchor #33761 (v18.5.0 sweep, post-publish smoke).

    Cells A, B, C and D pass: the published 18.5.0 works for new users, Studio, deploys and upgraders from 18.4.0 with real data. No security finding. Both FAILs are pre-existing or release-hygiene defects, extracted:

    Extracted: #33901 · smoke:npm-18.5.0 · E3
    Extracted: #33903 · smoke:npm-18.5.0 · F1b
    

    Re-judged: #33106 (18.4.0's D2) does not reproduce on main; the 18.5 upgrading row and release page landed before the publish (absent at the tag itself only by tag lag).

  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#3 · os-tesla · session_01L9qibzj9DrVWXkq7joYHGB

    Closed 2026-11-15T13:50Z: the published 18.5.0 passes its npm smoke on every user path (A–D); close-out in comment 6895301167.

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