Skip to content

QA run · priority:P0 (24/24) · ff69bcab · 2026-11-29 · 20 PASS / 3 PARTIAL / 1 FAIL / 0 BLOCKED / 0 NOT-RUN #38417

Done

Description

@objectstack-fleet

qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

The release-candidate priority:P0 round on main before the next release, run by four runners in one container on the maintainer's request and filed by qa#2. The runners made no GitHub write.

Release reading: one P0 clause fails, platform-core.boot-health acceptance[2]: a false [knowledge] ERROR on every boot, reproduced by three runners independently and extracted as a card (see the close-out comment). Every other item is PASS or PARTIAL, and the three partials are named gaps, not defects. No security finding.

Subject: objectstack-ai/objectstack main at ff69bcabb2a9ee655980e12810d4ad0d15256479, selector priority:P0 (24 runnable, 0 planned), resolved with node scripts/checklist-select.mjs priority:P0 --json. Release-candidate smoke, requested by the maintainer (「准备发版本,跑一轮冒烟测试」, 2026-11-28T23:42Z). An off-checklist knowledge-retrieval leg set (no checklist items exist for it) is reported in the same round, below.

Environment fingerprint: cloud container, 4 cores / 15 GB, Linux 6.18, Node v22.23.5, pnpm 10.31.0. pnpm install --frozen-lockfile 15 s; pnpm build --concurrency=3 123/123 tasks, 9m27s, 0 cached; pnpm console:build exit 0 (entry chunk served byte-identical to dist, sha256 checked). Four runners in parallel on the one box (opus, effort high), each with its own port range (41100–41499) and file DBs; executed in parallel, not sequentially. Seed: the showcase with --seed-admin (20 datasets, 141 rows). Window: the request at 2026-11-28T23:42Z to the runners' last record write at 2026-11-29T00:37Z. Shared-box effects recorded: two vitest batches OOM-killed (exit 137) and re-run per file at --maxWorkers=1, all green; chromium Target crashed twice in the showcase smoke (OOM in dmesg), green on re-run.

CI on the subject: CI push run 46200756012 success; scheduled CI 46184351050 (61cde6d) success; Lint & Type Check 46200756070 success; Packed-tarball smoke 46201065619 success; Framework Build Base Image 46200755962 success. Nightly Tiers 46112638663 (7605e0c) failure, closed as timing by #38227 (#38183).

item rev verdict decisive evidence
access-security.rls-both-sides 12 partial objectstack verify --rls: 21 PROVEN, 0 HOLES; all personas 38 consistent; A5 D11 spot-check blocked(dependency, knownGaps[0])
access-security.write-path-guards 9 pass pins 12/9/9 HTTP + engine 21/34; live droppedFields + X-ObjectStack-Dropped-Fields on lead_score; member forge/transfer/disown 403
access-security.crud-permission-matrix 13 partial persona-matrix pin 49/49 (45 rows × 4 verbs); verify CRUD 15 verified 0 FAILED; A5 blocked(dependency, #23267)
access-security.owd-sharing-matrix 9 pass six pins green; live contributor PATCH 200, member_default PATCH 403 row unchanged
access-security.anonymous-deny-surfaces 5 pass pin 88/88; live 7 families 401 UNAUTHENTICATED; public form 200
access-security.no-active-org-session-semantics 12 pass live walled isolated + group boots: writes 403 naming missing org, A7 group create 403 never 5xx; A3 from HTTP-inproc pin
access-security.walled-environment-metadata-operator-only 10 pass 7 pins green; live org owner with manage_metadata 403 on 7 doors, nothing stored
api-backend.query-contract-matrix 10 pass 22 operators both spellings match; windowing/projection/sort/refusal codes/empty-list live; A4 from HTTP-inproc pin 10/10
api-backend.packaged-action-disabled-dispatch 14 pass live 409 ACTION_DISABLED + sentence, 400 enabled contrast, 403 bodies byte-identical, MCP run_action refused/re-armed, cold restart still 409
automation.packaged-flow-disable-durable 10 pass ledger row has no organization_id; 409 FLOW_DISABLED; cold restart enabled=false bound=false; re-enable same row id, fires
identity-auth.default-organization-boot-invariant 6 pass pins 57 + 4; org created 23:57:12.149 before first user 23:57:17.906
cli.dev-boot-contract 10 pass 8/8; health/ready 200; --admin-password restart admin123→200 changed99→401; exits 0/130/143/1
cli.organization-ownership-ceremony 13 pass 6/6; 9 pins green; drop gate on real v17 copy; 18.0.0-next.5 restore upgrades
platform-core.v18-boot-refusals 11 pass 4/4; v17 copy refused before listen, no row written
ai.mcp-stdio-fail-closed 10 pass 8/8; keyless/unknown/revoked refuse; API_KEY_REVOKED 403 after revocation
platform-core.boot-health 15 fail a2: ERROR [knowledge] the start of the build of source 'showcase-showcase_task_notes' was not recorded + WARN Insert operation failed {"object":"sys_knowledge_sync_state", UNIQUE constraint failed: sys_knowledge_sync_state.id} on 5/5 boots; other 5 clauses pass
platform-core.seed-integrity 8 pass 20 datasets / 141 rows match; restart idempotent
integration-system.datasource-credential-refusal-matrix 10 pass 13 inline-credential doors refuse at os build and runtime; credentialsRef to live PostgreSQL; reads redact
platform-core.console-login 5 pass login, reload, server sign-out → /login?redirect, wrong password 401 INVALID_EMAIL_OR_PASSWORD
platform-core.nav-surfaces-render 10 pass smoke 48/50 then 2/2 re-run (OOM); served nav 50 leaves = SURFACES; bad route named state
platform-core.builtin-apps-nav-render 20 pass 55 Setup + 10 Account render; member refused Setup, 11 settings namespaces 403 SETTINGS_FORBIDDEN; Marketplace catalog blocked(environment, known gap)
records-forms.crud-roundtrip 22 pass 8 clauses + 3 negatives; clone drops planted readonly lead_score
approvals.account-app-entry 10 pass non-admin avatar → Profile → Approvals; approve 0/2 → 1/2
studio-authoring.first-run-loop 16 partial en leg 6/6 on one boot; forged writes 422 WRITABLE_PACKAGE_REQUIRED / 403 ITEM_LOCKED; zh-CN leg not-run (time budget)

Repro rule for the fail (boot-health a2): in a copy of the showcase, objectstack dev --no-compile --fresh -p <port>; grep -c 'ERROR \[knowledge\]' over the boot log before any request → expected 0, got 1. Reproduced on a fresh file DB, a restart on the same DB, two --fresh tempdirs and -d :memory: (r2), and independently by r1 (every stock, walled and dogfood boot) and r3 (boot A).

Not-run hand-over: studio-authoring.first-run-loop zh-CN leg and its #29673 regression row; rls-both-sides A5 D11 spot-check (private write-up); crud-permission-matrix A5 (#23267); Marketplace catalog content (no route to cloud.objectos.ai).

Item-text revisions owed (checklist edits, not defects): console-login clause 0 still expects /_console/home (home retired, #36732); builtin-apps counts 46/8 → 55/10; approvals clause 3 row-click app (#35412 keeps the inbox's app); crud edit button "Update" → "Save"; Studio first-run steps stale in five places (no Home build chip, object dialog "Create" publishes directly, Save publishes with no "Publish all" sheet, no "add objects as menu items" option, menu terms); boot-health compile prints 44 author-time warnings, not 30; ceremony a5 needs a carve-out for the renamed showcase sharing rule and the 14-/30-day reaps on the aging 18.0 fixture.

Off-checklist knowledge-retrieval legs (fd9ac00 #38307, 156a432 #38378, 148c6eb #38329, 951c779 #38353, a7e60c7 #38310, a7f7f3f #38038, 9b783ee #38380): service-knowledge suite 21 files / 726 tests pass; sync-state.test.ts ×3 12/12 each, slowest multi-node 1353 ms vs 26 000 ms budget; touched lint/spec/platform-objects/audit/cli/app-shell/dogfood tests pass; live: one durable sync-state row per source agreeing across API/index_status/Setup, survives restart; MCP search_knowledge hits carry exactly the declared metadataFields and follow an edit; invalid-source save refused but misworded (card 2); Studio form create/edit works, two switches misrender (card 3).

Per-clause evidence: the item table above gives each item's decisive line. The full per-clause tables, one acceptance or negative clause per row with its text oracle, follow as four comments on this issue: runner r1 (access-security, api-backend, automation, identity-auth), r2 (CLI and boot), r3 (browser) and r4 (the off-checklist knowledge-retrieval legs).

Cost: environment preparation was install 15 s plus build 9m27s plus the console build; the runners' test wall clock and token spend were not metered this round, so this record carries no cost line beyond the build.


Card 1 — bug · service-knowledge · suggested p1

Title: service-knowledge: every boot logs a false ERROR because the sync-state upsert reads a by-id update as "no row changed"

Since fd9ac00 (#38307), every showcase boot logs ERROR [knowledge] the start of the build of source 'showcase-showcase_task_notes' was not recorded, preceded by WARN Insert operation failed {"object":"sys_knowledge_sync_state", UNIQUE constraint failed: sys_knowledge_sync_state.id}. Measured at main ff69bca on fresh DBs, restarts over an existing DB and :memory:; an operator rebuild seconds later fails the same way (logged at debug only, since the error is reported once per process).

Mechanism (read from source, measured end to end): upsert in packages/services/service-knowledge/src/knowledge-sync-state.ts calls updateWhere({ id: key }, data) with multi: true and trusts affectedRows(result). A plain where.id takes ObjectQL's single-record update path, which answers the updated record, not a count, so affectedRows reads 0 although the row was updated. The fallback insert collides with the primary key, the retry update reads 0 again, and upsert throws. On a brand-new DB it still fires because recordSources() inserts the row before the boot build starts.

Effect: the stored state is correct (new build_id, trigger and start time land; end-of-build writes land). But the operator sees a false ERROR telling them to check schema sync on every boot, and the once-per-process error report is spent on it, so a real sync-state write failure later in that process goes unseen. Unit tests miss it because they mock the logger and never assert logger.error stays unused.

Done when: a boot of the showcase logs no [knowledge] ERROR or sync-state insert WARN; a test over a real engine (not a mocked count) pins that an upsert over an existing row writes once and logs nothing at warn/error.

Card 2 — bug · service-knowledge / UX · suggested p2

Title: knowledge-source save door words permanent reference mistakes as temporary or as permission refusals

With the knowledge service mounted, saving a knowledge source that points at an absent object answers 503 SERVICE_UNAVAILABLE "... could not be judged ... try again"; an absent sys_ object answers 403 "is a system object that does not opt into AI reads"; an absent field answers 403 "you may not query field ... hidden from you". The save-time permission check runs before the reference rules and has no "does not exist" arm. os validate / os lint name knowledge-source-object-unknown / -field-unknown correctly. Reproduced on two boots at ff69bca; wording dates from #37676 (2026-11-27). Done when the save door names the absent object or field as such, with the same rule names the CLI uses.

Card 3 — bug · Studio form · suggested p2

Title: Studio knowledge-source form shows "Searchable by AI agents" and "Sync on record changes" OFF when unset, though both default ON

On a source that stores neither aiExposed nor refresh.onRecordChange, both switches render aria-checked="false" in read-only and edit mode, while the schema default is true, the help text says "On by default", and the source is in fact searched. Reproduced on two fresh loads at ff69bca (148c6eb #38329). Likely the generic form's rendering of an unset boolean whose default is true; other types not checked. Done when an unset default-true switch renders ON.

Card 4 — test-fix · QA tooling · suggested p2

Title: qa-fixture.mjs contributor-member fails at step 3: invited sign-up joins no organization before email verification

node scripts/qa/qa-fixture.mjs contributor-member fails at step 3 on ff69bca with 400 VALIDATION_FAILED … is not a member of the organization: an invited sign-up is joined to the organization only after email verification (by design), but the script binds the position right away. All three runners worked around it with admin create-user. Done when the script creates a member that is in the organization before binding.

Activity

  1. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Per-clause evidence for #38417, part 1 of 4, as runner r1 wrote it. Paths under $S and the scratch directory are the runner's own container and are not kept.

    Run record — release smoke round, runner r1 (access-security / api-backend / automation / identity-auth, P0 api)

    • Subject: objectstack-ai/objectstack main @ ff69bcabb2a9ee655980e12810d4ad0d15256479 (tree /home/user/objectstack, git log -1 confirmed; git status --short empty at end of run).
    • Runner: r1. Ports used: 41110, 41111 (stock), 41130 (walled isolated), 41140 (walled group). All servers stopped at end; lsof -ti tcp:<port> empty for each.
    • Scratch: /tmp/claude-0/-home-user/7ab68c8e-cb30-5c49-aeb6-00a9081b4e25/scratchpad/r1 (evidence files ev-*.txt, boot logs stock-boot1.log, stock-boot2.log, stock2-boot.log, walled-iso-boot.log, walled-grp-boot.log, verify report verify-rls.log, pin logs unit-*.log, df/*.log, df-summary.log, units-summary.log).
    • Stock boot line: OS_HOME=$S/stock-home OS_PORT=41110 OS_STORAGE_LOCAL_ROOT=$S/uploads setsid pnpm -C examples/app-showcase exec objectstack dev --ui --seed-admin --no-compile --no-watch -p 41110 -d file:$S/stock/data.db --log-level info (posture single, confirmed by GET /api/v1/auth/config features.tenancyPosture: "single" on the 41111 boot).
    • Walled boots: node scripts/qa/qa-fixture.mjs walled-boot --posture isolated|group --port 4113x|4114x --dir $S/walled-xxx --member-less EMAIL (fixture proves multiOrgEnabled: true, the posture, degradedTenancy: false; re-read live: {"multiOrgEnabled": true, "tenancyPosture": "isolated", "degradedTenancy": false}). Torn down with qa-fixture.mjs teardown.
    • Layer names (RUNNER rule 6): "HTTP-inproc" = dogfood pins that boot the app through @objectstack/verify bootStack and drive the REST doors through the Hono HTTP stack in-process; "engine" = real ObjectQL engine + driver, no HTTP; "plugin unit" = middleware over a stub; "live HTTP" = this run's own os dev server.

    Tier 1 pins

    Unit pins (one vitest run per package, --maxWorkers=2, --reporter=verbose), all exit 0:

    package files (tests) summary
    packages/objectql engine-insert-static-readonly-strip (21), engine-readonly-strip-caller-values (34), engine (139), engine-filter-array-lowering (60) Test Files 4 passed (4) · Tests 253 passed (253)
    packages/plugins/plugin-security no-active-organization-write-refusal (23), no-active-organization-insert-union-scope (6) 2 passed · 29 passed
    packages/plugins/plugin-auth ensure-default-organization (57) 1 passed · 57 passed
    packages/runtime identity-objects-default-organization.pin (4), domains/action-activation-dispatch (12), domains/packages-walled-write-refusal (32), domains/automation-walled-definition-write (12), domains/meta-walled-catalog-refusal (19) 5 passed · 79 passed
    packages/rest meta-migrate-stored-walled-refusal (6), request-schema-gate.conformance (16) 2 passed · 22 passed

    Dogfood pins (packages/qa/dogfood). A first single batch of all 21 files at --maxWorkers=2 was OOM-killed (exit 137) mid-run on this shared 15 GB box (two other runners active, load avg ~7); before the kill it reported wall-package-doors-refusal.dogfood.test.ts (23 tests | 2 failed), both failures being the operator CONTROL cases at 5231 ms / 5026 ms (default 5 s test timeout under load). Re-run one file at a time at --maxWorkers=1 (df-summary.log):

    file result
    wall-package-doors-refusal Tests 23 passed (23) (the 2 batch failures do not reproduce solo → environment/timing)
    showcase-private-owd 8 passed
    showcase-anonymous-deny-surfaces 88 passed
    showcase-crud-persona-matrix 49 passed
    owner-anchor-and-bulk-writes 12 passed
    showcase-static-readonly 9 passed
    showcase-readonly-when-parent 9 passed
    showcase-public-read-owd 4 passed
    showcase-invoice-line-contributor-pair 5 passed
    controlled-by-parent 4 passed
    showcase-invoice-cbp 4 passed
    showcase-permission-zoo 12 passed
    rls-fixture 6 passed
    rls-multitenant 2 skipped (by design: describe.skipIf(!organizationsAvailable); not a scoring pin for any clause here — the items name it only as "purpose-built fixture, does not score")
    no-active-organization-write-refusal 6 passed
    sharing-rule-org-less-caller 16 passed
    wall-environment-metadata-refusal 23 passed
    wall-catalog-refusal 17 passed
    packaged-activation-ledger-reach 11 passed
    packaged-action-disabled-dispatch-live 8 passed
    showcase-expand-crud-gate 10 passed

    objectstack verify --rls over the showcase

    cd $S/verify-cwd && OS_CLOUD_URL=off node /home/user/objectstack/packages/cli/bin/run.js verify --rls --app /home/user/objectstack/examples/app-showcase/objectstack.config.ts → exit 0 (run from a scratch cwd so the boot's cwd-relative external-datasource file stays out of the tree; OS_CLOUD_URL=off = no marketplace plugin, same as the dogfood harness).

    • CRUD tail: ── 15 verified, 0 gaps, 0 FAILED, 1 needs-fixture, 8 skipped (0 mismatches); seed 141 records landed.
    • RLS per-persona (probe persona, unit = objects): ── 21 PROVEN (21 consistent, 0 HOLES) · 3 NOT PROVEN (0 member-visible, 0 probe-blocked, 3 skipped).
    • Total (unit = object × persona): ══ all personas: 38 PROVEN (38 consistent, 0 HOLES) · 226 NOT PROVEN (131 member-visible, 62 probe-blocked, 33 skipped); 10 of 10 declared position(s) probed.
    • Objects proven on an ADOPTED row ([target adopted from existing rows — admin create failed (400)]): showcase_account, showcase_invoice, showcase_invoice_line.
    • Skips and their detail lines: showcase_project_membership [skipped] no plain-text probe field; showcase_ext_customer / showcase_ext_order [skipped] external datasource "showcase_external" (read-only): not exercised.

    access-security.rls-both-sides (revision 12) — partial

    clause verdict evidence
    A0 member list presence+absence pass live HTTP (41110): A list ['A note 1','A note 2'], B list ['B note 1'] (ev-rls-live.txt); pin showcase-private-owd 8/8 (HTTP-inproc). Both members hold no explicit grant (sys_user_permission_set?user_id= → []).
    A1 foreign by-id read denied pass live: GET /api/v1/data/showcase_private_note/<B id> as A → 404 RECORD_NOT_FOUND (not-found-shaped denial)
    A2 foreign by-id write denied, row unchanged pass live: PATCH {"body":"forged"} as A → 404 RECORD_NOT_FOUND; admin re-read byte-identical (True, body original-b)
    A3 admin reads full set pass live: admin list contains every id created (True)
    A4 runRlsProofs 0 holes pass verify --rls above: 21 PROVEN (21 consistent, 0 HOLES), total 38 consistent, 0 HOLES; adopted rows: showcase_account, showcase_invoice, showcase_invoice_line
    A5 skipped objects explainable + D11 spot-check blocked(dependency, knownGaps[0] — private D11 write-up) for the D11 spot-check; the other half (each skip explained by its detail line) holds: 3 skips, each with a benign detail (no plain-text probe field; read-only external datasource ×2)
    negatives n/a (procedural; negative[0] observed: forged PATCH 404 + row unchanged)

    Derived: partial (A5 blocked by the private-dependency gap, by design).

    access-security.write-path-guards (revision 9) — pass

    clause verdict evidence
    A0 readonly strip on INSERT, advertised pass pin showcase-static-readonly 9/9 (HTTP-inproc); live (41111): POST contact with lead_score:10 → 201, droppedFields [{fields:['lead_score'],reason:'readonly'}], header X-ObjectStack-Dropped-Fields: lead_score;reason=readonly, read-back lead_score None (ev-stock2.txt)
    A1 readonly strip on UPDATE pass pin; live PATCH lead_score:99 → 200, re-read None
    A2 owner forge on INSERT denied pass pin owner-anchor-and-bulk-writes 12/12; live Alice → 403 "owner_id … is system-managed — creating a record owned by another user requires the transfer grant"; admin count of planted = 0
    A3 transfer/disown denied, self-owner insert ok pass live transfer 403, disown 403, owner re-reads Alice; self-owner insert 201
    A4 bulk insert stamps caller pass live createMany (bare array) 201, all 3 owner_id == Alice
    A5 readonlyWhen per-row in bulk pass pin showcase-readonly-when-parent 9/9 (HTTP-inproc)
    A6 per-row validation in bulk (continueOnError) pass pin showcase-readonly-when-parent (HTTP-inproc)
    neg0 admin forge/transfer/disown succeed pass live admin forge-insert 201, transfer 200, disown 200
    neg1 isSystem exemption pass engine pins engine-insert-static-readonly-strip (21) + engine-readonly-strip-caller-values (34) green (engine layer, as the clause prescribes)

    access-security.crud-permission-matrix (revision 13) — partial

    clause verdict evidence
    A0 allowed cells succeed + persist pass pin showcase-crud-persona-matrix 49/49 (HTTP-inproc; 164 showcase cells + 16 field_ops_delegate × sys_* cells)
    A1 withheld cells 403 PERMISSION_DENIED (405 on sys_user create/delete) pass same pin; live spot: member_default PATCH showcase_project → 403 PERMISSION_DENIED
    A2 denied create leaves no row pass same pin
    A3 viewAllRecords on the 4 named objects pass same pin
    A4 modifyAllRecords on announcement pass same pin; also showcase-permission-zoo 12/12
    A5 guest_portal create-without-read blocked(dependency, #23267 — knownGaps[2]: no door binds a set to the guest anchor)
    A6 every set × every row pass access-matrix.json recounted: 45 entries (41 showcase_* + 4 sys_*), 9 sets; pin covers 45 × 4
    object-level half (verify --rls) pass CRUD 15 verified, 0 gaps, 0 FAILED, 1 needs-fixture, 8 skipped; RLS 0 HOLES
    neg0 / neg1 pass pin (admin re-run of first denied cell per set 2xx; no withheld cell 2xx)

    Live grant door spot: admin POST /api/v1/data/sys_user_permission_set {user_id, permission_set:'showcase_contributor'} → 201, grant took effect (C1 PATCH of the admin's project → 200, re-read changed).

    access-security.owd-sharing-matrix (revision 9) — pass

    clause verdict evidence
    A0 private pass pin showcase-private-owd 8/8 (HTTP-inproc); live corroboration from rls-both-sides legs (B's list excludes A's notes, by-id 404)
    A1 public_read pass pin showcase-public-read-owd 4/4
    A2 modifyAllRecords crosses owner-writes pass pin showcase-crud-persona-matrix (modifyAllRecords case)
    A3 public_read_write + object bit gates pass pin; live (41111): contributor C1 PATCH admin's project → 200 + re-read QA OWD project (c1); member_default PATCH → 403 PERMISSION_DENIED, row unchanged
    A4 controlled_by_parent derivation pass pin showcase-invoice-line-contributor-pair 5/5 (stock grants) + controlled-by-parent 4/4 + showcase-invoice-cbp 4/4. Private D11 verdict is carried on rls-both-sides A5 only (dedupe rule)
    A5 auditor VAMA over derived scope pass pin showcase-invoice-line-contributor-pair
    A6 all four models recorded pass this table

    access-security.anonymous-deny-surfaces (revision 5) — pass

    Pin showcase-anonymous-deny-surfaces 88/88 (HTTP-inproc, platform default posture). Live HTTP (41110, ev-anon.txt), one verdict per variant:

    variant anonymous family verdict
    data GET /data/showcase_private_note 401 UNAUTHENTICATED rest-flat pass
    metadata GET /meta (+ PUT /meta/object/anon_probe) 401 / 401 rest-flat pass
    actions POST /actions/showcase_task/showcase_mark_done/anon-probe-id 401 (never 404) dispatcher-wrapper pass
    automation GET /automation/_status 401 dispatcher-wrapper pass
    batch POST /batch {"operations":[]} 401 rest-flat pass
    security-explain GET /security/explain 401 rest-flat pass
    analytics query / sql (valid + malformed body) / meta 401 ×5 dispatcher-wrapper pass

    A4 member contrast: data 200, meta 200; analytics member: query 200 / malformed 400 VALIDATION_FAILED, sql 200 / malformed 400, meta 200. A5: anonymous GET /api/v1/forms/contact-us → 200 serving showcase_inquiry. negative[0]: anonymous DELETE /automation/showcase_reassign_wizard → 401, admin GET afterwards → 200. All clauses pass.

    access-security.no-active-org-session-semantics (revision 12) — pass

    Walled boots via qa-fixture (isolated :41130, group :41140), membership policy invite-only. Producers: (1) member-less (--member-less, organization/list [], activeOrganizationId null); (2) a create-user member who sent set-active {"organizationId": null} (get-session reads null; organization/list = its one org). Evidence ev-noorg-iso.txt, ev-noorg-grp.txt.

    clause verdict evidence
    A0 tenant-scoped reads empty 200 pass isolated P1 and P2: showcase_task / private_note / account → 200, 0 rows. group P1 → 200, 0 rows; group P2 → 200 with rows of its one membership only (organization_id set = {its org}; the DB also holds 10 tasks in the default org, none returned)
    A1 writes refused loudly, naming the missing org pass all 8 creates (2 postures × 2 producers × private_note/task) → 403 PERMISSION_DENIED (ledgered code), message "'showcase_task' is scoped to an organization, and this session has no active organization — so this insert has no organization to place the record in."
    A2 no NULL stamping pass raw-DB NULL/empty organization_id count identical before/after every attempt (0→0; totals 30→30 isolated, 20→20 group); same-caller read-back 0 rows (isolated)
    A3 org-scoped holder reads/writes nothing pass (HTTP-inproc pin only) sharing-rule-org-less-caller 16/16; live leg not driven this run
    A4 audit ledger via object permission pass operator GET /data/sys_audit_log?user_id= → 200, id set == raw telemetry rows (re-measured at one instant: 11/11 and 10/10 isolated; 11/11 and 10/10 group); self read → 403 PERMISSION_DENIED. tenant_id: P1 all login/logout rows NULL; P2 logins carry the org id, the logout sent with no active org carries NULL (knownGaps[3] open question; not scored)
    A5 state legal, nothing 500s pass get-session 200, /data/sys_user 200, /meta 200; no [REST] Unhandled error / 500 in either walled boot log
    A6 three subsystems agree pass sharing (pin: refuses everything), wall/write (refuse loudly, nothing stamped), audit (rows written, operator reads all, user 403) — no disagreement
    A7 walled group leg pass group P2 (non-empty membership, null active org) POST /data/showcase_task {title, project: operator project in that org} → 403 PERMISSION_DENIED (not 5xx; no SystemWriteOrganizationRequiredError in log); NULL count 0→0

    Control: operator (active org set) reads 30/20 tasks and creates a note stamped with its org (201).

    access-security.walled-environment-metadata-operator-only (revision 10) — pass

    clause verdict evidence
    A0 permanent pins pass unit: meta-migrate-stored-walled-refusal 6, packages-walled-write-refusal 32, automation-walled-definition-write 12, meta-walled-catalog-refusal 19 (all green); dogfood: wall-package-doors-refusal 23/23 (solo; 2 timeouts only in the OOM'd batch), wall-environment-metadata-refusal 23/23, wall-catalog-refusal 17/17
    A1 org-owner writes refused 403, nothing stored pass isolated walled boot. Fixture: org owner A (create-user, own org qa-org-a created and set active; positions ['org_owner','everyone'], isPlatformAdmin false); operator created package com.qa.catalog (201) and saved permission set qa_meta_author with systemPermissions ['manage_metadata'] (200); the grant row {user_id: A, permission_set: qa_meta_author, organization_id: orgA} was a direct row on the run's own scratch DB (fixture write outside HTTP). Results: PUT /meta/object/qa_walled_probe 403 FORBIDDEN; PUT /meta/permission/showcase_member_default 403 FORBIDDEN; POST /meta/view/showcase_task.in_progress/publish 403 FORBIDDEN; DELETE /packages/com.example.showcase 403 PERMISSION_DENIED; POST /security/permission-sets/showcase_member_default/clone 403 PERMISSION_DENIED; POST /meta/_migrate-stored {} 403 FORBIDDEN; POST /automation qa_walled_flow 403 PERMISSION_DENIED — each message names the 'isolated' tenancy posture and ADR-0131 D3/D12. Read-backs: object 404, permission set unchanged, package 200, clone 404, flow 404
    A2 operator admitted; single-posture admin admitted pass operator PUT object 200, read-back 200, delete 200; single-posture boot (41111) admin PUT 200, read-back 200, delete 200

    api-backend.query-contract-matrix (revision 10) — pass

    Live HTTP 41110 as admin, baseline = unfiltered GET /data/showcase_account?$top=500 (14 rows), every expectation computed locally (qcm.py, ev-qcm.txt).

    clause verdict evidence
    A0 operator answer sets, both spellings pass 22 operator variants + 2 case-exactness probes + compound AST ['and', …], each $:PASS and AST:PASS on id-set equality (eq 9, ne 5, gt 9, gte 9, lt 3, lte 4, in 12, not_in 2, between 10, contains 1 / ORTH 0, not_contains 12, starts_with 1 / con 0, ends_with 2, like %Industries 2 / Hooli 1, is_null 12, is_not_null 2, icontains ORTH 1, ilike 2, is_empty 12, is_not_empty 2, before 3, after 4). Infix [cond,'and',cond] → 400 VALIDATION_FAILED
    A1 windowing pass $orderby=name&$top=3&$skip=2 and $top=4&$skip=5 equal the sorted-baseline slices; POST {limit,offset} and {top,skip} equal too
    A2 projection pass $select=name,status and body fields → key set exactly ('name','status') (no id); fields:['account.name'] on showcase_invoice → 400 INVALID_FIELD, message names expand
    A3 sort + INVALID_SORT pass full sequence asc/desc on annual_revenue, GET and POST; bad field → 400 INVALID_SORT on both doors
    A4 expand enforces target RLS/FLS pass (HTTP-inproc pin) showcase-expand-crud-gate 10/10; engine.test.ts #2850 green (engine, partial-only by itself). Live contributor leg not driven: qa-fixture.mjs contributor-member failed at its step 3 (see probes)
    A5 scalar comparand refused pass POST {status:{$nin:'done'}} → 400 VALIDATION_FAILED, fields[0].field query.where.status.$nin, message names $nin, status, array; AST ['status','not_in','done'] → 400 VALIDATION_FAILED at query.where; GET $filter twin → 400 INVALID_FILTER; no rows
    A6 unknown inputs pass ?$pageSize=5 → 400 UNSUPPORTED_QUERY_PARAM listing supported params; ?not_a_field=x → 400 INVALID_FIELD; where unknown field → 400 INVALID_FIELD
    A7 empty-list boundary pass $in: [] → 200, 0 rows; $nin: [] → 200, 14 rows == baseline
    A8 30 variant rows pass 22 op rows above + params: $top/$skip (windows), $select, $orderby, $count=true (total 14 with 2 rows), $search=Northwind → ['Northwind'], $filter (churned set equal), $expand=account (account objects returned)
    neg0 no silent widening pass {limit:'ten'} → 400 VALIDATION_FAILED; {not_a_query_key:{…}} → 400 INVALID_FIELD
    neg1 empty projection / count flag pass ?$select=, %20, ,, select=, fields= → 400 VALIDATION_ERROR naming the spelling; $count=maybe, $count=1, count= → 400 VALIDATION_ERROR; POST {fields:[]}, {select:''}, {limit:2,count:'maybe'} → 400 VALIDATION_FAILED; by-id ?select= → 400; no probe returned rows

    api-backend.packaged-action-disabled-dispatch (revision 14) — pass

    Pins: action-activation-dispatch 12/12 (dispatcher unit), packaged-activation-ledger-reach 11/11, packaged-action-disabled-dispatch-live 8/8. Live HTTP 41110 (ev-flow-1.txt, ev-flow-2.txt, ev-action-live.txt):

    clause verdict evidence
    A0 REST 409 ACTION_DISABLED, no side effect pass disabled mark_done with bogus id → 409 ACTION_DISABLED, "This action is turned off for this deployment. An administrator can turn it on again on the action in its package in Studio, or you can use another action." (no table/ADR); with a real task id after restart → 409, task re-read done False, progress 55, updated_at unchanged. Ledger row key set has no organization_id
    A1 consult precedes param contract pass param gallery disabled → 409 ACTION_DISABLED; identical request enabled → 400 VALIDATION_ERROR "Invalid action params: Action param "p_text" is required; Unknown action param "bogus_key""
    A2 consult precedes record load pass disabled traces 409 with bogus recordId; enabled control on the same bogus id → 404 RECORD_NOT_FOUND (corroboration)
    A3 403 not an oracle pass showcase_zoo_perm_missing as a plain member: enabled 403 PERMISSION_DENIED and disabled 403 — bodies byte-identical (True)
    A4 MCP run_action door pass POST /api/v1/mcp tools/call run_action {actionName:'showcase_portfolio_snapshot'}: disabled → isError: true, code ACTION_DISABLED, status 409, same sentence as REST; re-enabled → ok: true result
    A5 durable across restart, re-enable updates row pass cold restart (group killed, port confirmed free, second os dev on same data.db): boot log [ObjectQLPlugin] Activation ledger: 1 packaged action(s) are switched off … 'showcase_mark_done'; post-restart 409; re-enable 200 → dispatch 200 (task done True / progress 100); row ZiulDtTSUUGxsOxO still present, active True, created_at 00:00:04.239 / updated_at 00:01:00.692
    A6 flow-type action refused by own switch pass disabled showcase_bulk_reassign → 409 ACTION_DISABLED, the turned-off sentence; showcase_reassign_wizard runs 0 → 0
    neg2 anonymous floor pass anonymous dispatch → 401 UNAUTHENTICATED

    automation.packaged-flow-disable-durable (revision 10) — pass

    File DB $S/stock/data.db, cold restart between two os dev processes (second at --log-level info). Evidence ev-flow-1.txt, ev-flow-2.txt, stock-boot2.log.

    clause verdict evidence
    baseline — urgent task create 201 → 1 new run (0 → 1)
    A0 toggle writes the durable row pass toggle {enabled:false} → 200; exactly one row {id: bggwc8ReeVSlNObr, metadata_type: flow, name: showcase_urgent_task_alert, package_id: com.example.showcase, active: false}; key set ['active','created_at','created_by','id','metadata_type','name','package_id','updated_at','updated_by'] — no organization_id
    A1 FLOW_DISABLED message pass POST /automation/showcase_urgent_task_alert/trigger → 409 FLOW_DISABLED, message exactly "This flow is turned off for this deployment. An administrator can turn it on again in its package's Automations in Studio, or copy it there under a new name." (no table, no ADR)
    A2 survives cold restart, unbound pass post-restart _status: enabled: False, bound: False; boot log line 1087 [Automation] Activation ledger: 1 packaged flow(s) are switched off for this installation and were left unbound — 'showcase_urgent_task_alert'.
    A3 kill switch on the new process pass runs 1 → 1 after a post-restart urgent create (201)
    A4 re-enable updates same row pass toggle {enabled:true} → 200; same id bggwc8ReeVSlNObr, active True, updated_at moved (00:00:03.962 → 00:01:01.005); _status enabled/bound True; final urgent create → runs 1 → 2

    identity-auth.default-organization-boot-invariant (revision 6) — pass

    clause verdict evidence
    A0 pins pass plugin-auth ensure-default-organization 57/57; runtime identity-objects-default-organization.pin 4/4
    A1 Default Organization before first user pass stock-boot1.log (--log-level info): 23:57:12.152Z INFO [default-org] created the Default Organization (org_mx12kzthnsx9jfua) precedes 23:57:18.431Z … promoted the platform admin to owner; rows: sys_organization org_mx12kzthnsx9jfua slug default created_at 23:57:12.149Z < first sys_user admin@objectos.ai created_at 23:57:17.906Z (file DB boot rather than --fresh, same ordering read)
    A2 owner/member, both sessions active on default org pass sys_member?organization_id=org_mx12kzthnsx9jfua: admin owner, second user (admin create-user) member; both get-session activeOrganizationId = org_mx12kzthnsx9jfua
    A3 seeded org-columned rows carry the org pass sys_business_unit 5 rows (bu_acme, bu_east_coast, bu_field_ops, bu_hq_finance, bu_west_coast), all organization_id = org_mx12kzthnsx9jfua, 0 NULL

    Off-clause probes (≈10 min, beside the clauses, same boots)

    Covered: query doors with boundary values (case-exact variants of contains/startsWith, like without wildcard, infix AST, by-id ?select=), walled write doors as the operator vs an org owner, action switch with an unentitled caller and an admin who also lacks the capability (403, never 409), the audit ledger read at two instants. Personas: admin/operator, plain member, contributor, org owner, member-less and org-cleared users.

    Observations (none scores):

    1. qa tooling: node scripts/qa/qa-fixture.mjs contributor-member --base-url http://localhost:41110 fails at its step 3 with 400 VALIDATION_FAILED "User … is not a member of the organization … sys_user_position.user_id must name a user who holds a sys_member row". This matches RUNNER's own note that an invited sign-up joins no organization until it accepts with a verified address; the fixture script still binds the position straight after the sign-up. Looks like fixture drift, not a product defect (blocks scripted contributor personas on a stock boot; admin create-user + a grant works).
    2. Every showcase boot (stock and walled, and the dogfood stacks) logs once at boot: ERROR [knowledge] the start of the build of source 'showcase-showcase_task_notes' was not recorded (Duplicate record refused on 'Knowledge Sync State' …) preceded by WARN Insert operation failed … UNIQUE constraint failed: sys_knowledge_sync_state.id. Outside my items; flagged for triage.
    3. Expected env noise: showcase_declarative_connector_ping fetch failed in dogfood logs (compiled self-URL, RUNNER standing fact) — not a finding.

    Environment notes

    • Dogfood batch at --maxWorkers=2 OOM-killed (exit 137) under the shared load; per-file re-runs at --maxWorkers=1 used for every dogfood verdict.
    • The tree's examples/app-showcase/.objectstack/data/ exists (git-ignored; tree boots touch it). installed-packages/ absent. git status --short empty.
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Per-clause evidence for #38417, part 2 of 4, as runner r2 wrote it. Paths under $S and the scratch directory are the runner's own container and are not kept.

    Release smoke round — runner r2 record (P0 CLI/boot set)

    • Subject: objectstack-ai/objectstack main @ ff69bcabb2a9ee655980e12810d4ad0d15256479 (git rev-parse HEAD read at start; git status --short empty, no tracked file edited).
    • Runner: r2. Ports used: 41201–41203, 41205–41206, 41210–41215, 41220–41221, 41230–41231. All servers I started are stopped; the scratch PostgreSQL was torn down (qa-fixture.mjs teardown --dir /tmp/r2-pg).
    • Wall: 2026-11-28 23:55 → 2026-11-29 ~00:32 UTC.
    • Scratch dir: /tmp/claude-0/-home-user/7ab68c8e-cb30-5c49-aeb6-00a9081b4e25/scratchpad/r2 (written $S below). All logs are under $S/logs, $S/t1, $S/cer, $S/n5, $S/n5b, $S/mcp, $S/ds, $S/dsbuild/out.
    • App dir: every showcase boot ran from $S/app, a copy of examples/app-showcase without node_modules/.objectstack/.turbo. Its node_modules is a symlink to the showcase's own. Writes into the app dir (compile, stale touch, unified default DB, legacy dev.db) never touched the shared tree.
    • Environment: 4 cores, 15 GB, shared with two other runners. The kernel OOM-killed my first @objectstack/cli vitest batch (SIGKILL, run at --maxWorkers=2). I re-ran the files that had not reported at --maxWorkers=1 and all of them passed. That kill was the environment, not a test failure.
    • Console: packages/console/dist was present, timestamped 23:54 (another runner built it). /_console/ served 200 text/html, so I drove the console legs and did not block them.

    Summary

    item rev verdict
    cli.dev-boot-contract 10 pass (8/8)
    cli.organization-ownership-ceremony 13 pass (6/6); a5 passes with one accounted-for exception that the ledger lacks (accuracy note A4)
    platform-core.v18-boot-refusals 11 pass (4/4)
    ai.mcp-stdio-fail-closed 10 pass (8/8)
    platform-core.boot-health 15 fail (a2: ERROR line in the boot window, on every boot), other 5 pass
    platform-core.seed-integrity 8 pass (5/5)
    integration-system.datasource-credential-refusal-matrix 10 pass (8/8)

    Tier 1 pins (run first)

    package file result
    @objectstack/cli src/utils/organization-ownership-apply.generation-1.test.ts ✓ 23 tests
    @objectstack/cli src/utils/organization-ownership-apply.test.ts ✓ 117 tests
    @objectstack/cli src/utils/organization-ownership-host-supplement.integration.test.ts ✓ 7 tests
    @objectstack/cli src/commands/migrate/comment-reactions.integration.test.ts ✓ 7 tests
    @objectstack/cli src/commands/migrate/apply-organization-ownership-gate.integration.test.ts ✓ 5 tests (re-run at --maxWorkers=1 after the OOM kill)
    @objectstack/cli src/commands/migrate/organization-ownership.occupancy.integration.test.ts ✓ 5 tests (re-run)
    @objectstack/cli src/commands/migrate/organization-ownership.dialect.test.ts ✓ 19 tests (re-run)
    @objectstack/cli src/commands/migrate/organization-ownership.apply-flags.test.ts ✓ 7 tests (re-run)
    @objectstack/runtime src/organization-ownership-boot-guard.test.ts ✓ 30 tests
    @objectstack/runtime src/organization-ownership-boot-guard.kernel.test.ts ✓ 12 tests
    @objectstack/plugin-security src/authz-identity-objects-boot-refusal.test.ts ✓ 3 tests
    @objectstack/mcp src/tests/plugin.test.ts ✓ 18 tests (corroborating only)
    @objectstack/mcp src/tests/plugin-execution-context.test.ts ✓ 9 tests (corroborating only)

    Commands: pnpm --filter <pkg> exec vitest run --reporter=tree --maxWorkers=2 <files>, then --maxWorkers=1 for the cli re-run. Logs are $S/t1/{cli,cli-rerun,runtime,security,mcp}.log.


    cli.dev-boot-contract (rev 10): PASS

    # clause verdict evidence
    a0 health 200 + ready pass objectstack dev --ui --seed-admin -p 41201 -d file:$S/db/main.db (compiling boot) reached health 200 in 37.6 s. GET /api/v1/ready answered 200 {"status":"ready","state":"running","seed":"settled"}. Log: $S/logs/boot1.log
    a1 seeded admin loginable; seed idempotent pass Boot 1: POST /api/v1/auth/sign-in/email admin123 answered 200. I restarted on the same DB with --admin-password changed99 ($S/logs/boot2.log). After that, admin123 answered 200 and changed99 answered 401 INVALID_EMAIL_OR_PASSWORD. I judged the seed by the auth responses, not the banner
    a2 DB resolution matrix pass Every variant printed the expected Database line. Explicit -d file: gave 🗄️ Database: file:$S/db/main.db. Env OS_DATABASE_URL=file:$S/db/env.db gave file:$S/db/env.db. -d :memory: gave Database: :memory: and served showcase_task 200. Nothing chosen (OS_HOME unset) gave file:$S/app/.objectstack/data/objectstack.db. Legacy compat-read ($S/app-legacy, dev.db only) gave file:…/.objectstack/data/dev.db, printed the one notice line ⚠ Reading legacy database file …/dev.db — … migrate with: mv …, and created no objectstack.db. Config-declared default ($S/cfgdefault, named sqlite datasource qa_home + datasourceMapping [{default:true, datasource:'qa_home'}], object sharingModel private) gave file:$S/cfgdefault/.objectstack/data/qa_home.db with no objectstack.db. Retired engine: --database-driver memory exited 2 (oclif allowlist). OS_DATABASE_DRIVER=memory os dev --fresh exited 1 with no Database line. -d memory:// printed Database: memory:// and then ✗ … memory:// scheme selects the in-memory (mingo) engine … Use SQLite instead: os dev --fresh … :memory:, exit 1
    a3 --fresh isolates OS_HOME pass Boot printed 🧪 Fresh OS_HOME: /tmp/objectstack-dev-v04cUb and Database: file:/tmp/objectstack-dev-v04cUb/data/objectstack.db. After SIGINT the dir was gone (ls: cannot access). The project .objectstack/data listing was unchanged before vs after; the earlier boot's showcase_external.db there is the documented #5594 cwd-relative carve-out
    a4 port shift reported pass With A on 41201, B (-p 41201) printed ↪ server bound to port 41202 (requested 41201) and ➜ API: http://localhost:41202/. Health on 41202 answered 200
    a5 stale artifact warned pass I touched src/data/seed/index.ts and booted with --no-compile. The boot printed ⚠ dist/objectstack.json is OLDER than your sources — this boot serves the STALE build. / newest source: src/data/seed/index.ts (5m newer …) / fix: run objectstack build or start with --compile …, and health answered 200
    a6 no config → exit 1 + remedy pass In $S/noconfig, os dev exited 1. Stderr carried Run in a directory with objectstack.config.ts, pass --artifact <path|url>, or run from the monorepo root.
    a7 console login page pass Playwright screenshot $S/logs/console-login.png: GET /_console/ answered 200 and redirected to /_console/login. The screenshot shows the "Welcome back" form with email and password fields, and no page errors

    Exit codes (steps[8]): plain os dev SIGINT gave EXIT 0 (boot2, stale, default, legacy, cfgdefault, envdb, memdb). --fresh SIGINT gave EXIT 130. --fresh SIGTERM to the os dev pid gave EXIT 143, and the tempdir /tmp/objectstack-dev-elsk1w was deleted. The no-config case exited 1.

    cli.organization-ownership-ceremony (rev 13): PASS

    Fixtures:

    • v17 DB: create-objectstack@17.7.0 v17app --skip-install --skip-skills, then npm install --legacy-peer-deps (exit 0), then its own objectstack dev --seed-admin -p 41210 -d file:$S/v17db/v17.db once. That gave 69 tables, 43 carrying organization_id, and no ceremony marker. The v17 copy is a blank scaffold, not the showcase.
    • Copies: $S/cer/{R,C,D,RD}.db.
    • Production legs ran with OS_AUTH_SECRET set. The n5 legs ran with --dev.
    # clause verdict evidence
    a0 permanent pins pass All 9 pin files are green; see Tier 1
    a1 bare plan changes nothing; apply w/o plan refused pass C.db was pre-booted once (os serve, refused, exit 1). Plan run: os migrate organization-ownership --database-url file:C.db --out plan.json exited 0 and printed ✓ Plan written … no row or table in the database was changed. Plan header: kind organization-ownership-plan, ceremony ADR-0131 D10, inventoryDigest 48695f3c…9ce3, 163 table entries. sha256 of C.db was 55d6ca37…084d before and after the plan. --apply without plan: the text run exited 1 with ✗ Refused: --apply executes only a plan you reviewed…; the --json run exited 1 with {"error":"apply_refused","reason":"plan-file-required",…}. The checksum was unchanged after both refusals. Production legs compose no telemetry sibling
    a2 reviewed apply completes, marker certified pass --apply --plan-file plan.json --backup-taken --out apply.json --json exited 0 with complete true and blocking 0. Steps: attribution, authored-conversion, metadata-promotion, template-promotion, settings-move, sibling-moves, declared-webhooks, declared-rule-copies, rewrite, mirror-deletion, history-renumber, column-drops, not-null, all done. Marker row: verified_at 2026-11-29T00:09:12.859Z, blocking 0, details.checkpoint.shapeGeneration 1, which equals ORGANIZATION_OWNERSHIP_SHAPE_GENERATION = 1 (spec migration.zod.ts:215)
    a3 serve refuses unmigrated, boots migrated pass Unmigrated R.db, production os serve: exit 1 with 0 listening/ready lines. It printed ✗ This database carries no organization-ownership marker: … Run 'os migrate organization-ownership --out PLAN' … then run 'os migrate organization-ownership --apply --plan-file PLAN --backup-taken --out REPORT', with 0 hits for 17.x release. Unmigrated RD.db under os serve --dev: the refusal carried --dev in both commands. Migrated C.db: ✓ Server is ready, and /ready answered 200 ($S/logs/serveC2.log)
    a4 drop gate holds on unmigrated v17 copy pass D.db: os migrate comment-reactions --apply --yes ran twice, both exit 0 (Converted 0 reaction(s) … recorded as verified). Then os migrate apply --allow-destructive --yes --json exited 1 with "message":"refused_organization_ownership_unmigrated" and "tables":["sys_flow_credential","sys_job","sys_job_queue","sys_metadata","sys_metadata_commit","sys_metadata_history","sys_migration","sys_migration_journal","sys_secret"], applied: []. sha256 was 2246d4ee…578e before and after, and the row diff was 0. This used a real v17 copy, so the clause can score pass
    a5 18.0 pre-release DB upgrade keeps its data pass, with an exception (see note) Restore: cli-prerelease-fixture.ts restore, born under @objectstack/cli@18.0.0-next.5 (820fd5aef0d6). The shard was re-dated to r20261128, and the token re-date changed 1 row. First os serve --dev exited 1 before listening, opening This database carries no organization-ownership marker and naming sys_flow_credential, sys_secret; the row diff before vs after that boot was 0 and its created tables were empty. Plan exit 0 with the checksum unchanged. Apply exit 0, complete true, blocking 0: sibling-moves moved 10, jobsRewritten 2, activityRepointed 14; declared-webhooks mirrorsDeleted 1; column-drops 2; not-null 61 applied with 1 unsupported (rotation shard). Second boot reached ✓ Server is ready. Rows were read at the second boot's ready plus about 60 s, before any door call (copy $S/n5b). Both identity mails are in sys_identity_email under their own ids, 0 diffs over 19 common columns, and gone from sys_email. Both invitation mails stay in sys_email. All 8 global audit rows moved to sys_platform_setting_audit with 0 diffs. The two pending email.send.async jobs for moved mails now carry "object":"sys_identity_email" in payload_json and metadata_json. The invitation jobs differ only in attempts, scheduled_for and updated_at, which is recipe knownGaps[1] (the second boot keeps delivering). Pre-existing ids gone: sys_email 2 and sys_setting_audit 8 (moved, report), sys_webhook 1 (mirror deleted, report), sys_automation_run 2 (recipe knownGaps[3]), and sys_record_share 1, which neither the report nor the ledger accounts for: see note. Counts only grew elsewhere. Doors (copy $S/n5): admin, member A and member B sign in 200 with their 18.0 passwords and 401 with a wrong one. The token read from the moved reset mail (sys_identity_email 5297ac0f…) gave POST /api/v1/auth/reset-password 200, and the new password signed in 200. One showcase_task PATCH (estimate_hours) wrote exactly one sys_http_delivery row in n5.telemetry.db, with ref_id declared:com.example.showcase/showcase_task_changed

    Note on a5 (checklist accuracy, not product data loss):

    • sys_record_share. The one rule-sourced share was replaced at the second boot. The old row has source_id share_key_account_qualified_contacts_with_managers; the new row has showcase_share_key_account_qualified_contacts_with_managers. All other columns (object, record, recipient, access level) are identical. The showcase renamed its sharing rule since 18.0.0-next.5, so the sharing engine dropped the share of a rule that no longer exists and materialised the renamed rule's share. A plain restart of a v19-born DB does not re-key shares: on main.db the share created at 23:56:56 survived the restart. The ledger needs a carve-out like knownGaps[3].
    • Fixture aging. On the first n5 copy I read rows again about 1 min after the doors. By then the 66 sys_activity rows (created 2026-10-27) and 4 terminal sys_automation_run rows had gone. These are the 14d activity age-reap (sys-activity.object.ts retention.maxAge '14d') and the 30d terminal-run retention (sys-automation-run.object.ts maxAge '30d'). The restore re-dates the shard name but not the row timestamps, and the fixture is now 33 days old. On the second copy, read at ready and at ready plus 60 s, nothing had been reaped yet.

    Off-clause observation: on the upgraded n5 DB the second boot's banner reads ⚠ Seeds: com.example.showcase 136 ok / 5 errors. Five newly authored showcase_invoice_line rows are refused because their 18.0-era parent invoices have a blank currency_code; the column was added since, and create-only ignore never backfills it. showcase_invoice_line stays 5→5, where QA runs #33784/#33909 measured 5→10.

    platform-core.v18-boot-refusals (rev 11): PASS

    # clause verdict evidence
    a0 pins pass runtime boot-guard 30 + kernel 12, plugin-security 3; all green
    a1 v17 DB refused before listening, correct spelling pass Production OS_DATABASE_URL=file:R.db os serve -p 41211 exited 1 with 0 Server is ready/➜ API lines. The refusal opens This database carries no organization-ownership marker, names sys_flow_credential, sys_job, sys_job_queue, sys_metadata, sys_metadata_commit, sys_metadata_history, sys_migration, sys_migration_journal, sys_secret, and contains os migrate organization-ownership --out PLAN and --apply --plan-file PLAN --backup-taken. Hits: 0 for 17.x release, 0 for fresh installs only, 0 for the code literal (not printed, as documented). os serve --dev (RD.db) spelled --dev --out PLAN and --dev --apply --plan-file PLAN --backup-taken
    a2 refused boot wrote no row pass node:sqlite snapshots before and after (wal included, $S/cer/R.{before,after}.json): 69 pre-existing tables, 0 row/value/column differences; 73 tables created, all empty; no adr-0131-organization-ownership marker. Counts held, e.g. sys_email_template 24→24 and sys_permission_set 8→8
    a3 auth-less security boot refused naming createIdentityObjectsPlugin() pass (live rig) Scratch $S/authless (plugins: [new SecurityPlugin()], one object, resolved through packages/cli/node_modules). os serve --dev --no-server --preset minimal exited 1: ✗ SecurityPlugin cannot boot: its authorization store reads sys_user, sys_member … mount AuthPlugin, or … mount createIdentityObjectsPlugin() from @objectstack/plugin-auth. with no listening line

    ai.mcp-stdio-fail-closed (rev 10): PASS

    Fixture on $S/mcp/mcp.db, minted on an os dev boot:

    • Contributor member and client_liaison member, created by admin create-user, membership created, position bound via POST /api/v1/data/sys_user_position (201), password changed, key minted with POST /api/v1/keys.
    • One own invoice for the contributor (INV-QA-R2). Before it, the contributor read 0 of 12 seeded invoices.
    • All stdio legs drove objectstack start -p 41221 -d file:mcp.db through a JSON-RPC stdio driver ($S/mcp/drive.cjs). Outputs are $S/mcp/out-*.json. Stdout carried 0 non-JSON lines on every session.
    # clause verdict evidence
    a0 keyless auto-start refuses pass OS_MCP_STDIO_ENABLED=true, no key: exit 1, 0 ready lines. Message: [MCP] The stdio transport is enabled (OS_MCP_STDIO_ENABLED / autoStart) but OS_MCP_STDIO_API_KEY is not set. … Refusing to start an unscoped stdio server (ADR-0101).
    a1 unknown and revoked keys refused up front pass osk_unknown: exit 1 with [MCP] OS_MCP_STDIO_API_KEY did not resolve to a valid identity (unknown / revoked / expired / owner-less). Refusing to start stdio (ADR-0101). Revoked contributor key: exit 1 with [MCP] OS_MCP_STDIO_API_KEY is refused (API_KEY_REVOKED): … Refusing to start stdio (ADR-0101). Neither process served
    a2 principal-bound line pass --log-level info: [MCP] stdio transport principal-bound to OS_MCP_STDIO_API_KEY identity 6Q1PgfWjhfqwkwVKYGDw3WAwEaFOPHdn (RLS/FLS/tenant applied), which is the contributor's sys_user id
    a3 MCP reads = member REST reads; admin sees full pass RLS (contributor): MCP query_records gave 1 row [INV-QA-R2]; REST member list gave 1 row [INV-QA-R2]; 24 vs 24 fields, 0 value diffs. INV-1003 (linus's) was 404 RECORD_NOT_FOUND on both MCP get_record and REST. Admin key (minted in the os start session) listed 13 rows including INV-1003, and GET INV-1003 answered 200. FLS (liaison): MCP and REST both returned 5 projects with 20 fields and budget/spent/budget_remaining absent; the admin read 23 fields with values
    a4 MCP aggregate = member REST aggregate < admin pass MCP aggregate_records count by status gave [{status:draft,n:1}], scope visible_to_you. REST POST /api/v1/analytics/query {cube:showcase_invoice, measures:[count], dimensions:[status]} as the member gave [{draft:1}]; as the admin it gave [{draft:3},{paid:5},{sent:5}]
    a5 FLS aggregate fails closed pass Liaison sum(budget): isError, PERMISSION_DENIED 403 [Security] Field read denied: not permitted to aggregate [budget] on 'showcase_project'. groupBy budget: same refusal. count_distinct(spent): the same with [spent]. No numeric result in any of the three. Controls: count by status gave 4 groups totalling 5; count(*) gave 5
    a6 revocation bites on next call pass Same session. Pre-revoke query_records returned 1 row. An admin API-key PATCH was refused 403 PERMISSION_DENIED: Changing an API key requires a signed-in session. The admin session PATCH /api/v1/data/sys_api_key/tN1cc3wLo3R4yfKs {"revoked":true} answered 200. The next query_records returned isError true with {"error":{"code":"API_KEY_REVOKED",…,"status":403}} and no records
    a7 stdio disabled ⇒ clean boot pass No ENABLED, no key, --log-level info: health 200 and [MCP] Transport not auto-started (HTTP is served per-request at /api/v1/mcp regardless). …; exit 0 on SIGINT

    aggregate_records was present in tools/list, so knownGaps[0] did not apply.

    platform-core.boot-health (rev 15): FAIL (a2)

    The boot was the canonical compiling os dev --ui --seed-admin -p 41201 -d file:$S/db/main.db from the app copy. I captured the boot log to its own file and issued no non-health request before Press Ctrl+C to stop ($S/logs/boot1.window.log).

    # clause verdict evidence
    a0 health 200 pass 200 after 37.6 s from process start
    a1 ready 200 pass {"success":true,"data":{"status":"ready","state":"running","seed":"settled"}} HTTP 200
    a2 no misauthored ⚠ under Flows; no ERROR in boot window FAIL Flows banner: 33 flow(s) 18 bound … · 8 draft, two ℹ … NOT bound — disabled by deployment policy lines (deployment-policy class) and 0 ⚠. That half passes. ERROR half: the boot window contains ERROR [knowledge] the start of the build of source 'showcase-showcase_task_notes' was not recorded (Duplicate record refused on 'Knowledge Sync State': a unique constraint on 'Source Key' already holds this value. No record was written.) …, plus the Boot diagnostics row WARN Insert operation failed {"object":"sys_knowledge_sync_state","error":{"message":"UNIQUE constraint failed: sys_knowledge_sync_state.id …"}}
    a3 merged app metadata resolves pass GET /api/v1/meta/app?id=showcase_app answered 200; top keys type, items; 1 item with keys name, label, icon, branding, active, isDefault, navigation, …
    a4 served nav = authored grp_data pass Served grp_data: showcase_project, showcase_task, showcase_account, showcase_contact, showcase_invoice, showcase_expense_report, showcase_product, showcase_team, showcase_category, showcase_business_unit, showcase_field_zoo, showcase_cascade. src/ui/apps/index.ts grp_data lists the same 12 in the same order. Diff empty
    a5 console shell served pass GET /_console/ answered 200 text/html; charset=utf-8, 46249 bytes (and the screenshot under dev-boot a7)

    Reproduction (a2): the ERROR line appears on every boot I ran. That is boot1 (fresh file DB), boot2 (restart on the same DB), two --fresh boots in separate tempdirs ($S/logs/fresh.log, $S/logs/fresh2.log), and a -d :memory: boot ($S/logs/memdb.log). It is deterministic, not timing.

    Steps:

    1. cd <copy of examples/app-showcase>.
    2. Run objectstack dev --no-compile --fresh -p <port> (any DB).
    3. Wait for Press Ctrl+C to stop.
    4. grep 'ERROR \[knowledge\]' the log: expected 0 lines, actual 1.

    Self-check: no request was issued before the banner, so this is not caller-error noise.

    Diagnosis from source, for the PM:

    • The row the message says was "not recorded" is in fact written. After boot2, sys_knowledge_sync_state holds one row whose build_id is from that boot, with build_status done and build_message The build finished….
    • KnowledgeSyncStateStore.upsert (packages/services/service-knowledge/src/knowledge-sync-state.ts:327) updates first, then inserts, then retries the update, and throws when affectedRows() reads 0. The row exists (ensure() inserts it at knowledge-service.ts:1766), so the insert fails UNIQUE and the update "affects 0". That points at affectedRows misreading engine.update(..., {multi:true})'s return.
    • The code landed 2026-11-28 in fd9ac00 "each source's sync state is one durable record" (feat(service-knowledge): each source's sync state is one durable record, the same on every node #38307).

    Classification: a product regression in service-knowledge, very new. The user-visible effect is an ERROR at every boot plus a sync-state message saying the build was not recorded. Severity is probably low (data is written), but it fails this P0 clause as written. Not a security finding.

    Accuracy notes (no clause changed):

    • The compile on this subject prints ⚠ 44 author-time warning(s); steps[3] says 30. examples/app-showcase/test/author-time-advisories.test.ts passes (2/2), so 44 is the current allow-listed count.
    • The seed banner reads Seeds: com.example.showcase 141 rows.

    platform-core.seed-integrity (rev 8): PASS

    # clause verdict evidence
    a0 per-object counts = authored pass Derived by importing src/data/seed/index.ts with tsx: 20 datasets, 141 rows, equal to the steps[1] baseline. Server totals (GET /api/v1/data/<obj>?$top=1 → total, admin session) matched on all 20, zero mismatches: account 14, contact 32, inquiry 3, product 4, project 5, task 10, category 4, showcase_business_unit 9, sys_business_unit 5, team 2, project_membership 3, field_zoo 2, sys_exchange_rate 4, invoice 12, invoice_line 10, expense_report 4, expense_line 13, preference 1, announcement 2, client_brief 2. File: $S/logs/sweep1.txt
    a1 values land verbatim pass Specimen — Full: 35 fields OK, 0 DIFF ($S/logs/specimen-diff.txt). f_multiselect, f_checkboxes and f_tags compared as sets. f_lookup is the Northwind id; f_lookups is {Northwind, Contoso}; f_master_detail is the Website Relaunch id. f_json, f_address, f_record, f_repeater and f_composite are structurally equal. f_time reads 14:30:00 (canonical). f_datetime reads 2026-06-17T14:30:00.000Z. f_password reads ••••••••, which is expected-masked
    a2 seed loads all succeed pass Seeds: com.example.showcase 141 rows, plain with no ⚠. No Seed loading completed with N dropped line in the boot log
    a3 replay idempotent pass Restart on the same DB (boot2), then a second sweep: diff sweep1 sweep2 is empty
    a4 deliberately unseeded stay absent pass f_user null, f_users null, f_secret null, and all 10 tasks have cover = null. These are expected-absent, not findings

    integration-system.datasource-credential-refusal-matrix (rev 10): PASS

    Doors were enumerated from packages/spec/src/migrations/entries/semantic/: 17.datasource-config-inline-credential, 17.placeholder, 17.url-userinfo, 17.connector-inline-authentication, 18.url-query-credential, 18.mongo-options-credential, 18.options-nested-credential-spelling, plus the retired turso encryptionKey. The credentialsRef-mongo pairing refusals are shape checks, not inline-credential doors, so I did not drive them.

    # clause verdict evidence
    a0 every door refuses at publish (both doors) pass Per-door table below. Build door: scratch $S/dsbuild (one object, sharingModel private), objectstack build per door, log $S/dsbuild/out/<door>.log. Runtime door: POST /api/v1/datasources (connector: PUT /api/v1/meta/connector/qads_conn) on a showcase dev boot, $S/ds/runtime-doors.json. No refusal echoed the planted value
    a1 credentialsRef alternative publishes and connects pass Scratch PostgreSQL via node scripts/qa/qa-fixture.mjs external-database --port 41231 --dir /tmp/r2-pg. POST /api/v1/datasources with the password in the top-level secret answered 201 with status":"ok". POST /api/v1/datasources/qa_ext_pg/test answered 200 {"ok":true,"latencyMs":24,"tableCount":1}. Build-door control (external.credentialsRef authored) exited 0
    a2 both read doors redact and agree pass Admin door GET /api/v1/datasources/qa_ext_pg: config:{host,port,database,username}, hasSecret:true, redactedConfigKeys:[]. Metadata door GET /api/v1/meta/datasource/qa_ext_pg: the same config plus external.credentialsRef:"sys_secret:sec_40d5…". The secret had 0 hits in every full body: list, item, meta item, meta list, and /api/v1/data/sys_metadata?type=datasource
    a3 set vs unset distinguishable pass qa_ext_pg reads hasSecret:true; qa_nosec_sqlite reads hasSecret:false; both have redactedConfigKeys:[]. The set one is not null
    a4 legacy alias in a stored row redacted pass With the server stopped, I planted a direct sys_metadata row qa_legacy_pg (postgres) with passwd/pwd/token/jwt/auth_token/authtoken, then booted. Admin door: config without them, redactedConfigKeys:["auth_token","authtoken","jwt","passwd","pwd","token"]. Meta door: config without them, with _diagnostics.valid:false naming the keys and no values. Data door: the metadata column has no alias keys. 0 hits for Legacy*-r2 across all bodies
    a5 unknown driver: fixed spellings redacted, rest as written pass qa_plugin_drv, driver qa-plugin-driver, POST answered 201 (stored, status error: no driver factory). Admin and meta doors both read config:{"apiSecret":"PluginApiSecret-r2","url":"qa://u@host.example/db"}. The admin door names redactedConfigKeys:["authToken","passwd","password","url"]. password, authToken and passwd are absent and the URL userinfo password is stripped. apiSecret is served as written, which is the ruled #21921 boundary, not a FAIL
    a6 echoed config round-trip keeps the credential pass PATCH /api/v1/datasources/qa_ext_pg with the admin read's config verbatim answered 200 with status ok. /test afterwards answered 200 ok:true. hasSecret:true and the credentialsRef handle are unchanged. PUT answered 405 with allow: DELETE, GET, HEAD, PATCH
    a7 non-admin and anon get no more pass Non-admin bearer: all three doors answered 403 PERMISSION_DENIED (… requires the manage_platform_settings capability, or the data-door denial). Anonymous: all answered 401 UNAUTHENTICATED. 0 planted-value hits

    Per-door refusal table (build exit / runtime status; every message names the key/position and points at external.credentialsRef, or credentialRef for the connector):

    door build runtime
    postgres config.password 2, datasources.0.config.password: password is a credential… 400 DATASOURCE_ADMIN_ERROR, same hint
    mysql config.password 2 400
    mongodb config.password 2 400
    turso config.authToken 2 400
    postgres url userinfo 2, this url embeds a password in its userinfo 400
    postgres url ?password= 2, carries ?password= in its query string 400
    turso url ?authToken= 2 400
    mongodb options.auth.password 2 400
    mongodb options.tls.passwd (nested spelling) 2 400
    postgres host ${PGHOST} (placeholder) 2 400
    turso encryptionKey remote (libsql://) 2, removal prescription 400
    turso encryptionKey local (file:) 2, removal prescription 400
    connector authentication {bearer, token} 2, must not inline secrets via authentication … credentialRef 422 failed spec validation: authentication

    turso encryptionKey stored row (qa_turso_enc, file: url, planted directly): the admin door reads redactedConfigKeys:["encryptionKey"] and 0 hits for the value through the admin, meta and data doors.

    Not covered by this item (knownGaps[5]): the code-author env route and the connector channel.

    Probes (about 3 min): PATCH adding an inline password answered 400, and PATCH with a userinfo URL answered 400. POST with an empty-string password answered 400. PUT /api/v1/meta/datasource/qa_meta_put with an inline password answered 422. None of these values reached sys_metadata.


    Off-clause probe line (RUNNER rule 8)

    About 12 min in all, across the doors above (boot window, n5 upgrade boot, MCP fixture minting, datasource write doors). Findings:

    1. Seed over an upgraded 18.0-pre-release DB drops 5 invoice lines (136 ok / 5 errors): parent invoices lack currency_code. Item: cli.organization-ownership-ceremony.
    2. Fixture tooling: node scripts/qa/qa-fixture.mjs contributor-member fails at step 3 (exit 1, sys_user_position.user_id must name a user who holds a sys_member row). An invited sign-up presenting its invitationId is, by design (presented-invitation.ts), not bound into the organization while unverified, and accept-invitation answers 403 EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION. The recipe is stale. I worked around it with admin create-user (membershipCreated:true), a password change, then the position bind.
    3. MCP fixture note: an admin key minted on os dev for the seed admin is retired at the first non-dev os start. Log: [auth] user … was created by the development seed and still has its seed password … retired … 1 API key(s), and the key then answers API_KEY_REVOKED (forced password reset). Admin sign-in with admin123 is refused 403 on os start. fixtures.requires[1] should say to run os user set-password admin@objectos.ai first. Member keys verify fine.
    4. Beside these: os user set-password (CLI kernel) logs ERROR 2 federated (external) object(s) are NOT bound to their remote table … for showcase_ext_customer and showcase_ext_order. That is CLI-context noise; I did not pursue it.

    Fails

    Blocked

    • None.
  3. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Per-clause evidence for #38417, part 3 of 4, as runner r3 wrote it. Paths under $S and the scratch directory are the runner's own container and are not kept.

    Release smoke, runner r3 (P0 browser/mixed)

    • Subject: objectstack-ai/objectstack main at ff69bcabb2a9ee655980e12810d4ad0d15256479 (git rev-parse HEAD confirmed), tree /home/user/objectstack, unchanged (git status --short was empty at teardown).
    • Runner: r3. Ports 41310 (boot A), 41320 (boot B). Scratch: this directory. Screenshots are in shots/, at deviceScaleFactor 1 and 1440x900.
    • Boots: OS_PORT=<p> OS_STORAGE_LOCAL_ROOT=<scratch>/uploadsX pnpm -C examples/app-showcase exec objectstack dev --ui --seed-admin --no-compile --no-watch -p <p> -d file:<scratch>/dbX/data.db.
      • A: file DB dbA/. Booted 23:55Z, restarted once at about 00:25Z to plant the readonly value (crud clause 7).
      • B: file DB dbB/. One boot for the whole run: console-login, then the Studio en leg.
      • Neither boot logged a port shift. Both are torn down, and nothing of mine listens in 41300–41399.
    • Browser: Playwright chromium.launch() from Node, at most 2 browsers at once.
      • Environment: the shared memory cgroup OOM-killed chromium twice (dmesg: oom-kill ... task=chrome-headless) while the other runners' vitest jobs held about 12 GB.

    Step 0 — pnpm console:build

    • Command: pnpm console:build > console-build.log 2>&1 from the repo root. Exit 0, wall time about 2 s. turbo: 81 successful, 81 total / Cached: 80 cached.
      • @object-ui/console:build was a cache hit: the turbo hash of the ui/apps/console sources matched an existing build.
      • @objectstack/console:build:dist re-ran.
    • Ready line: ✓ @objectstack/console dist ready (91176 KB) from ui/apps/console, with the tracked sdui.manifest.json. The single-zod canary passed.
    • Served-entry check (boot A): /_console/ loads assets/index-Dn9z2aLu.js. That file has sha256 d7acfae5…4173 both as served and in packages/console/dist/assets/index-Dn9z2aLu.js, so they are byte-identical.

    platform-core.console-login (rev 5) — pass

    Boot B, which was fresh (no preferences). Script scripts/console-login.js and scripts/cl-expiry.js, outputs console-login.out and cl-expiry-r1.json.

    # clause verdict evidence
    0 login lands in the shell, not the login form pass (see note) shots/cl-01-login-form.png, shots/cl-02-post-login-shell.png. POST /api/v1/auth/sign-in/email answered 200 and the page landed on /_console/apps/com.example.showcase/page/showcase_capability_map, with the full shell (sidebar, avatar, bell).
    1 session survives reload pass After the reload the first authed calls were GET /api/v1/meta/app 200 and GET /api/v1/meta/object?package=com.example.showcase 200. An in-page GET /api/v1/meta/app?id=showcase_app answered 200 with 1 item (showcase_app). The URL did not change.
    2 expired session answered 401 by the server pass POST /api/v1/auth/sign-out answered 200 {"success":true}. Then GET /api/v1/meta/app?id=showcase_app, with the stale bearer still in localStorage (tokenStill:true), answered 401 UNAUTHENTICATED.
    3 console returns to login on BOTH legs pass (a) in-app navigation: a click on the sidebar's Accounts link gave GET /meta/object?names=sys_user 401 and get-session 401, then /_console/login?redirect=…, with the login form shown (shots/cl-04-expiry-inapp-nav-r1.png). (b) reload: get-session 401, then the same login redirect (shots/cl-05-expiry-reload-r1.png).
    4 re-auth restores a working session pass After the re-login the page returned to the same route (…/showcase_capability_map), every data call answered 200, and a fresh write POST /api/v1/data/showcase_category answered 201 (shots/cl-06-relogin-r1.png).
    • Negative (wrong password), pass: the response was 401 {"code":"INVALID_EMAIL_OR_PASSWORD"} with no set-cookie. The browser held no cookies and no token afterwards. The UI shows the named alert "Invalid email or password…" (shots/cl-07-wrong-password.png).
    • Note on clause 0 (checklist accuracy): the clause and its verify still say stock showcase lands on /_console/home with a launcher. On this SHA that is no longer true. ui/apps/console/src/components/RootLandingRedirect.tsx resolveDesktopLandingPath (objectstack#36732, the ruling that retired the platform home page) sends a desktop to the first visible product app. /_console/home itself redirects into an app. I scored the substance: the page landed in the authed shell, not on the login form. The item text needs a revision.
    • About the first attempt: cl-04 in console-login.out clicked the first showcase link, which was the current page, so no navigation happened. I re-drove the leg in cl-expiry.js by clicking a different link. The results above come from that second run.

    platform-core.nav-surfaces-render (rev 10) — pass

    # clause verdict evidence
    0 no surface errors, blank, splash or placeholder; charts measured by polling pass Layer: HTTP plus browser (a live boot driven by Playwright). Run 1 (smoke.log): 48 passed, 2 failed. Both reds were Target crashed (locator.count: Target crashed on Status × Priority, browser.newContext: Target crashed on Task Gallery), which matches the cgroup OOM kills in dmesg at the same time. Re-run of those two (smoke-rerun.log, same boot): 2 passed (7.1s). All 50 SURFACES are green, and every chart surface passed.
    1 smoke coverage is current pass meta-app-showcase.json (?id=showcase_app) serves 51 entries: 50 leaves plus nav_sep_reports. Diffed against the SURFACES array (25 pages, 13 objects, 3 filter slices, the tabular view, 3 dashboards, 4 reports, and nav_report_index as "All reports"), the diff is empty, so no surface needed a hand-walk.
    2 bad route shows a named state inside the shell pass /_console/apps/com.example.showcase/object_that_does_not_exist shows "Object Not Found — The object … does not exist…" plus "Back to app start page", with the sidebar intact (50 links) (shots/nav-badroute-obj.png). Bonus: …/page/no_such_page_xyz shows "Page Not Found" (shots/nav-badroute-page.png). No pageerror.
    3 render failure surfaces the ErrorBoundary pass (none encountered) No product render failure anywhere in the sweep. The two crashes were OOM-killed browser targets, and a re-run passed.
    • Command: SMOKE_API_URL=http://localhost:41310 pnpm -C examples/app-showcase test:smoke e2e/showcase-smoke.spec.ts --output=<scratch>/pw-results. I passed --output so nothing was written to the tree. examples/app-showcase/e2e/.auth/state.json was written, and that path is gitignored.

    platform-core.builtin-apps-nav-render (rev 20) — pass

    Boot A. Scripts walk.js, member-api.js, builtin-extra.js. Outputs walk-admin.json/.log, member-api.json, builtin-extra.json, screenshots shots/builtin/.

    # clause verdict evidence
    0 every Setup and Account destination renders for the admin pass 55 Setup and 10 Account sidebar destinations were walked, with a screenshot first and the DOM read after (shots/builtin/admin-setup-01..55.png, admin-account-01..10.png). 64 were ok. The 1 flag is Browse Marketplace, which shows the named "Failed to load marketplace — The marketplace catalog could not be reached." with More and Retry (admin-setup-04.png): an honest named state, and the catalog itself is blocked(environment) per the knownGap (sandbox egress). Zero pageerror, zero blank <main>.
    1 served nav matches the authored shell plus contributions pass meta-app-setup.json: 9 groups (group_overview … group_advanced [collapsed]), 55 leaves. meta-app-account.json: 4 groups (grp_account_inbox / ai_assistant / security / developer [collapsed]), 10 leaves. The 55 rendered sidebar links match the 55 served, and 10 match 10.
    2 member: Setup refuses, Account opens pass Mei (phone.demo@example.com). /_console/apps/com.objectstack.setup shows "You don't have access to this app…" with no sidebar (mei-setup-refused.png). /apps/setup/system/settings/mail shows the same screen (mei-settings-url-refused.png). Account opens Profile with Mei's identity (mei-account-opens.png).
    3 app gate is server-side pass Mei's GET /api/v1/meta/app?id=setup answered 200 {"type":"app","items":[]}. Mei's GET /api/v1/meta/app lists only showcase_app and account.
    4 entry gate enforced one level up pass As above, the member's ?id=setup is empty. Control: the admin and member account navs are identical (10 vs 10 ids). Wire half of negative[3]: GET /api/settings/<ns> as Mei answered 403 SETTINGS_FORBIDDEN for all 11 namespaces (the admin got 200 on each).
    5 service- and object-gated entries resolve to absence pass nav_organizations is absent (single-org). nav_business_units is present, and sys_business_unit is registered (its list renders). nav_jwks is absent.
    6 off-capability entries are pruned pass nav_sso_providers is absent (no OS_SSO_ENABLED). Neither app shows an "All reports" row.
    • Studio absence: ?id=studio answered {"type":"app","items":[]} for the admin and for Mei. That is expected (knownGap).
    • User record page /apps/com.objectstack.setup/sys_user/record/<admin id>: the Preferences tab (2 rows: ui.recent, ui.app.last) and the Linked Accounts tab (1 row: credential) render (admin-user-tab-*.png).
    • Count drift (checklist accuracy, not a defect): the item says 46 Setup and 8 Account destinations. Served at this SHA: 55 and 10.
      • Setup includes nav_settings_knowledge and nav_knowledge_sync_states. The showcase now mounts the knowledge service: the boot log shows [knowledge] source builds. That contradicts the item's "no stock app mounts knowledge".
      • Account adds nav_account_mobile_app and nav_account_notification_settings.
      • The item says to recount each run, and the numbers above are that recount.

    records-forms.crud-roundtrip (rev 22) — pass

    Boot A. Scripts crud.js, crud2.js, crud-api.js, readonly.js. Outputs crud-part1.json, crud-part2.json, crud-api.json, crud-readonly.log.

    # clause verdict evidence
    0 create, then the re-read is verbatim pass Form ?form=new, button "Create". Request POST /api/v1/data/showcase_account with body {"industry":"finance","status":"active","sales_region":"amer","name":"os-qa-r3a"} answered 201, id EY1EGc-o0H6cfkiV. The page landed on the record. The filtered re-read returns every value verbatim, and website stays null.
    1 update persists only the edited field pass The record-page Edit opens inline editing, whose button reads Save (the item says "Update"). Diff of full-row GETs before and after: annual_revenue 4242000→4343000 and updated_at only.
    2 delete is authoritative pass Path: header ⋯ (More actions), then Refresh / Share / Change Owner / Delete, then the confirm dialog. Request DELETE /api/v1/data/showcase_account/EY1EGc-o0H6cfkiV answered 200 with recycleBinEntryId. The filtered GET then answers total 0.
    3 list reflects each mutation after reload pass shots/crud-05-list-after-create-reload.png shows the row present. shots/crud-11-list-after-delete-reload.png shows it absent (listShowsAfterDelete:false).
    4 history shows display values pass ?related=timeline after a reload, with the Changes chip selected (shots/crud-08-history-changes.png). Lines read "Dev Admin · Updated Annual Revenue · 2 updates" and "Owner: Empty → Dev Admin; Account Name: Empty → os-qa-r3a; Industry: Empty → Finance; Lifecycle: Empty → Active; Sales Region: Empty → AMER". Those are labels and a resolved actor, with no raw payloads.
    5 unicode round-trips pass Created os-qa-r3u-华宁 (201). The filtered GET returns it byte-identical. $search=华宁 returns ["华宁科技","os-qa-r3u-华宁"]. This was API-driven. I did not press the list's search icon in the UI.
    6 clone copies values and re-derives system columns pass Admin clone: 201, new id ≠ sourceId, and the diff against the source is only id, created_at, updated_at and the overridden name. Owner half: a contributor-bound member cloned seeded zoo row 7oSPnhFwV2Vmx-Ab (owner = admin). Answer 201, owner_id and created_by = the member, f_autonumber 0001→0003. Readonly half: stopped A, ran UPDATE showcase_contact SET lead_score = 42 WHERE id='2mKAPtVu9ph5ZNgu' (1 row), restarted. The source read gives lead_score 42. The clone answered 201 with droppedFields:[{fields:["lead_score"],reason:"readonly"}] and header x-objectstack-dropped-fields: lead_score;reason=readonly. The clone's lead_score is null.
    7 clone is RLS-gated pass Member (showcase_contributor only). Premise: GET showcase_invoice/ldbya7K7RNTxqrn0 (INV-1003, owner linus@) answered 404 RECORD_NOT_FOUND. The clone answered 404 RECORD_NOT_FOUND. Invoice count was 14 before and 14 after.
    • Negatives:
      • Empty name in the form: the named error "Account Name is required", and no POST was sent (shots/crud-02-empty-name-blocked.png).
      • API POST without name: 400 VALIDATION_FAILED, fields[0] {field:name, code:required}.
      • Bad tax_id: 400 VALIDATION_FAILED invalid_format "Tax ID must look like 12-3456789.", and none was stored. All pass.
    • Fixture note: node scripts/qa/qa-fixture.mjs contributor-member fails at step 3 on this SHA.
      • The invited sign-up joins no organization, and the invitation stays pending (the RUNNER describes this: unverified addresses are not settled into the org).
      • The sys_user_position POST is then refused: 400 VALIDATION_FAILED … is not a member of the organization.
      • I minted personas through door 2 instead: admin create-user (membershipCreated:true), then change-password, then a position POST (scripts/mint-persona.js, bind.js).
      • This is a QA tooling defect, not a product regression.
    • Checklist accuracy: the edit button is "Save" on the record page, not "Update". The list's New button is labelled "New Account (Success Overlay)" (data-testid=object-view-new-button).
    • I did not capture the save request's route: my listener only caught non-GET calls to /api/v1/data/showcase_account, and none fired on save. The two full-row reads are the clause's oracle.

    approvals.account-app-entry (rev 10) — pass

    Boot A. Persona minted through door 2: qa-r3-approver2@example.com, holding showcase_contributor and showcase_finance (no Setup).

    Fixture: as the persona, I created own-row invoice INV-R3-308843 (owner = the persona's email, account 华宁科技, which is active). A PATCH to status:sent + issued_on started request areq_c2c90616-…, whose pending_approvers included the persona.

    Scripts appr1/2/3.js, appr-zh.js. Outputs appr-state.json, appr3.json, appr-zh.json.

    # clause verdict evidence
    0 registration survives bundling pass I ran pnpm console:build at ff69bcab: exit 0, with the ready line above. The served index-Dn9z2aLu.js is byte-identical to the dist copy. grep -o 'approvals:inbox' packages/console/dist/assets/index-*.js hits. Context: Hu({ref:\approvals:inbox`,label:`Approvals Inbox`,source:`@object-ui/console`,component:e=>(0,Q.jsx)(Z.Suspense,…`.
    1 entry renders the full inbox pass Path: avatar menu, then Profile (/apps/com.objectstack.account/component/account/profile_card), then the Inbox › Approvals link. That lands on /_console/apps/com.objectstack.account/component/approvals/inbox, with tabs My Pending 1 / Submitted by me / All, one request row, and the keyboard hint bar (shots/ap-04-inbox.png).
    2 a non-admin reaches it pass The persona's GET /api/v1/meta/app gives ["showcase_app","account"] (no setup). nav_account_approvals (approvals:inbox) is in the account nav. Landing is the Showcase app, not /home.
    3 decision actions render, and one moves the request pass (see note) A row click opened /apps/com.objectstack.account/sys_approval_request/record/areq_c2c90616… with Approve / Reject / More approval actions (ap-06). Approve, then the Confirm dialog, sent POST /api/v1/actions/sys_approval_request/approval_approve 200. Before: decision_progress got 0/need 2, pending_approvers [persona, admin, admin], viewer.can_act true. After: got 1/2, pending [admin], can_act false. /actions gained an approve row by the persona, and the buttons became Send reminder / Recall / Reply (ap-08).
    4 ?request= deep link pass A cold load of …/component/approvals/inbox?request=areq_c2c90616… replaced itself with /_console/apps/com.example.showcase/sys_approval_request/record/areq_c2c90616…, showing INV-R3-308843, Pending, and "Awaiting your approval" (ap-05-deeplink.png).
    5 record link keeps the current app segment pass The row link href is /_console/apps/com.objectstack.account/showcase_invoice/record/C4EeC8jQjfxSUCO0. The persona's direct GET /api/v1/data/showcase_invoice/C4EeC8jQjfxSUCO0 answered 200.
    6 zh-CN wording pass Path: avatar menu › Preferences › Language › 简体中文. The nav label reads 待我审批, tabs 待我审批 1 / 我发起的 / 全部, the status badge 待审批, and the actions 通过 / 驳回 (ap-10-zh-nav.png, ap-11-zh-inbox.png).
    • Note on clause 3 (checklist accuracy): the row click keeps the inbox's own app (com.objectstack.account). The deep link goes to the record's host app (com.example.showcase).
      • The clause text says a row click goes to the host app (objectstack#32667).
      • Current source says otherwise on purpose: ApprovalsInboxPage.tsx openRequest cites objectstack#35412, "a row opens in the app the inbox is mounted in", and only an inbox with no app segment asks requestPagePath.
      • So the split is by design. I scored the substance (actions render, and a decision moves the request).
    • Observation: pending_approvers lists the admin twice (KGDG… x2), because the admin holds both finance and legal. That is cosmetic. Progress counts need 2.

    studio-authoring.first-run-loop (rev 16) — partial (en leg pass on every clause; zh-CN leg not-run)

    en leg, boot B (one boot for the whole leg). Scripts st1..4.js, st-phase-*.js, st-enduser.js.

    # clause en zh-CN evidence (en)
    0 package create, and the switcher lists it with no reload pass not-run Path: app switcher › Add app › New blank app. That opens Setup › Packages with a "New Package" dialog. Name "Repairs", id typed com.example.repairs, namespace derived repairs, "Also create an app" unticked. Request POST /api/v1/packages answered 201 {status:"installed",source:"authored"}. It landed on /_console/studio/com.example.repairs/metadata/object. In the same session, the studio-pkg-switcher lists Showcase Read-only / Repairs Writable / New package (st-en-04-switcher.png).
    1 published object is server-real with 3 options pass GET /api/v1/meta/object/repairs_repair_ticket returns the status field with {"type":"select","label":"Status","options":[{"value":"open","label":"Open"},{"value":"in_repair","label":"In Repair"},{"value":"done","label":"Done"}]} (st-en-meta-object.txt).
    2 record persists pass Records grid › Add record › Status "In Repair" sent POST /api/v1/data/repairs_repair_ticket {"name":"Broken laptop","status":"in_repair"}, which answered 201. GET /api/v1/data/repairs_repair_ticket returns it with status:"in_repair" (st-en-data.json).
    3 app live in the launcher; the list shows the label chip pass The app switcher lists Showcase / Setup / Repair Center / Add app (st-en-21-launcher.png). Repair Center opens /apps/com.example.repairs/repairs_repair_ticket, where the row "Broken laptop" carries the chip In Repair, and the raw in_repair value does not appear (st-en-22-enduser-list.png). GET /api/v1/meta/app?id=repair_center returns nav [{type:"object",objectName:"repairs_repair_ticket"}] (st-en-meta-app.json).
    4 zero restarts pass bootB.log holds one ✓ Server is ready across console-login and the whole en loop. I issued no restart.
    5 read-only gate enforced server-side pass Forged PUT /api/v1/meta/object/showcase_qa_r3_probe?mode=draft&package=com.example.showcase answered 422 WRITABLE_PACKAGE_REQUIRED. A forged field-add PUT on showcase_account answered 403 ITEM_LOCKED (read-only managed package). Neither item exists afterwards.
    • zh-CN leg: not-run. I stopped for the time budget: the en leg took about 25 minutes, mostly mapping a Studio UI that has moved away from the item's steps, and my selectors are English-text-bound. Under the item's own negative[2], no clause can score pass until the zh leg runs, so the item is partial: nothing failed and nothing is fully proven. The Studio in zh-CN: a new object publishes "successfully" and never reaches the data plane, because its echoed queue column carries a translated label #29673 regression row (zh publish, then data 404) is unverified this round.
    • Checklist accuracy (the item's steps are stale in five places at this SHA):
      1. Home's build chip is gone: /home redirects into an app (objectstack#36732). The entry point is now the app switcher's "Add app › New blank app".
      2. The New object dialog's confirm reads Create, not "Save as draft". It drafts and publishes in one go: a PUT …?mode=draft followed by POST …/publish.
      3. There is a Save button. It drafts and publishes. I met no Changes panel or "Publish all" review sheet on this path.
      4. Studio › Application › New is a generic metadata form (Name / Label / Description / Active / Is Default). It has no "Add this package's objects as menu items" option.
        • Also, Active defaults OFF in that form; I switched it on. The save answered with advisory app-navigation-empty.
        • I wired the entry by hand in the app's Preview › "Add nav item" (type Object › Repair Ticket), then saved. That publish carried the nav.
      5. The Data pillar and Field layout terms were replaced by the "App Studio" left menu, with Records / Field layout / Advanced / … tabs per object.
    • Possible UX finding for the PM (not a clause): an app created from Studio's Application form starts inactive and with an empty nav. The server flags the empty nav with app-navigation-empty. If the auto-seeded nav that objectui#2262 describes was meant to survive, it no longer appears on this path. That is worth a look, but I have not confirmed it against objectui intent.

    Off-clause probes (about 5 minutes, within the runs above)

    • I probed two bad routes, an unknown object and an unknown page; both showed named states (nav item).
    • All 11 settings namespaces as the member, knowledge included: 403 each.
    • Two forged write shapes against the read-only package: create and overlay.
    • Wrong-password response headers: no cookie.
    • Nothing fileable came out of the probes beyond the notes above.

    Environment notes

    • The shared memcg OOM-killed chromium twice while other runners' vitest workers peaked. Both smoke reds came from that, and a re-run passed.
    • Boot A logged ERROR [knowledge] … Duplicate record refused on 'Knowledge Sync State' at first boot, on its own fresh DB, as a boot diagnostic. Its cause is not investigated, and it may belong to the knowledge runner's area.
    • The scripts/qa/qa-fixture.mjs contributor-member defect is described under crud-roundtrip.
  4. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Per-clause evidence for #38417, part 4 of 4, as runner r4 wrote it. Paths under $S and the scratch directory are the runner's own container and are not kept.

    Smoke run r4: knowledge retrieval (知识检索) since the last release

    Subject: objectstack-ai/objectstack main @ ff69bcabb2a9ee655980e12810d4ad0d15256479, tree /home/user/objectstack (no edits; git status --porcelain empty at the end).
    Runner: r4. Ports used: 41400 (showcase, file DB r4/db/data.db), 41401 (showcase, fresh file DB r4/db2/data.db), 41402 (app-todo, r4/db3). Every server started was stopped (0 listeners in 41400-41499 at the end).
    Scratch / evidence root: /tmp/claude-0/-home-user/7ab68c8e-cb30-5c49-aeb6-00a9081b4e25/scratchpad/r4 (written R/ below).
    No checklist items cover these features, so the legs below were defined from the merged PRs:
    fd9ac00 (#38307), 156a432 (#38378), 148c6eb (#38329), 951c779 (#38353), a7e60c7 (#38310), a7f7f3f (#38038), 9b783ee (#38380).

    Leg summary

    leg verdict one-line reason
    A1 service-knowledge full suite pass 21 files / 726 tests passed (--maxWorkers=2, 30 s)
    A2 sync-state.test.ts x3 (multi-node timing) pass 12/12 passed in all 3 runs; slowest multi-node case 1353 ms, budget 26 000 ms; no timeout
    A3 touched lint/spec/platform-objects/audit/cli/app-shell/dogfood tests pass 81 + 31 + 130 + 142 + 12 + 6 + 5 + 4 tests, all passed
    B1 live sync state: one durable row per source, readable over API pass sys_knowledge_sync_state rows and index_status agree; operator rebuild recorded; Setup "Knowledge Sync Status" lists them
    B2 sync state survives restart on the same DB pass rows kept their created_at across restart, runtime-authored source reloaded and rebuilt at boot
    B3 search_knowledge hit carries declared metadataFields pass hits carry exactly the source's declared fields ({priority} vs {status,priority}), and follow an edit live
    B4 invalid knowledge source refused with a named rule partial / fail (wording) live save door refuses, but with misleading wording and no rule name (503 "try again" for an absent object); the named rules fire only on the CLI (os validate/lint)
    X boot ERROR "start of the build ... was not recorded" (coordinator leg) fail (log-level, not release-blocking) deterministic, not a race: every startBuild on an existing row misreads the by-id update result as "0 rows", inserts, hits the UNIQUE pk, throws; the row data is correct
    C Studio knowledge-source form (browser) partial / fail (minor UI) create and edit through the real form work end to end; the "Searchable by AI agents" and "Sync on record changes" switches render OFF for an unset value whose effective default is ON

    Derived: no release-blocking product regression found. 3 fails (X, B4 wording, C switch display), all below release-blocking.


    Leg A: unit / integration

    All commands use --maxWorkers=2. Load average was about 1 to 6 (shared box).

    suite command (cwd) result log
    service-knowledge full npx vitest run --maxWorkers=2 (packages/services/service-knowledge) Test Files 21 passed (21), Tests 726 passed (726), 30.3 s R/A-service-knowledge.log
    lint npx vitest run --maxWorkers=2 src/validate-knowledge-source.test.ts src/validate-ai-context.test.ts (packages/lint) 2 files, 81 passed R/A-lint.log
    spec ... src/ai/knowledge-source.metadata-form.test.ts src/migrations/semantic-relevance.test.ts (packages/spec) 2 files, 31 passed R/A-spec.log
    platform-objects ... bare-type-display-echo-decisions, object-lifecycle-panel-echo-decisions, bundle-ownership, deployment-level-no-tenant-column 4 files, 130 passed R/A-platform-objects.log
    plugin-audit ... src/audit-writers.test.ts 1 file, 142 passed R/A-plugin-audit.log
    cli ... src/commands/knowledge/knowledge.test.ts 1 file, 12 passed R/A-cli.log
    app-shell (Studio form binding) pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/ResourceEditPage.formBoundObject-37309.test.tsx (cwd ui/; the package-dir invocation is refused by the objectui#3378 guard) 1 file, 6 passed R/A-app-shell.log
    dogfood studio round trip npx vitest run --maxWorkers=2 test/knowledge-source-studio-roundtrip.dogfood.test.ts (packages/qa/dogfood) 1 file, 5 passed R/A-dogfood-studio.log
    dogfood unmounted adapter ... test/knowledge-source-unmounted-adapter-save.dogfood.test.ts 1 file, 4 passed R/A-dogfood-unmounted.log

    The two-minute checks: sync-state 12 passed (claimed 12), knowledge-tools is inside the full suite (726 total), metadata-form inside the spec run, and validate-knowledge-source inside the lint run.

    A2: sync-state.test.ts, 3 runs (timing note for #38378)

    npx vitest run --maxWorkers=2 src/__tests__/sync-state.test.ts --reporter=json. JSON files: R/A-sync-state-run{1,2,3}.json.

    case (multi-node) budget run 1 run 2 run 3
    rebuild through node A reads identically on node B ... after both restart 26 000 726 843 1353
    a build whose node stopped mid-walk ... then interrupted 16 000 170 271 229
    over a cluster lock ... 17 000 321 342 608
    the next lease holder closes the build ... 10 000 226 343 294

    All 12 passed in each run (and in a 4th run with the default reporter). The worst reading, 1353 ms with load average 6.6, is above the old 5000 ms ceiling's comfort zone only under heavy load. No timeout reproduced here. This is a test-timing note, not a product finding.

    Note for A, which A did not catch: the harness mocks the logger (sync-state.test.ts:247) and never asserts logger.error is unused, so the leg-X defect passes silently in this suite.


    Leg B: live (showcase, file DB)

    Boot: OS_PORT=41400 SHOWCASE_SELF_URL=http://localhost:41400 pnpm exec objectstack dev --ui --no-watch --seed-admin -p 41400 -d file:R/db/data.db (cwd examples/app-showcase). Health 200 after about 15 s. The showcase mounts KnowledgeServicePlugin + KnowledgeMemoryPlugin: the memory store needs no embedder (lexical scoring), so no provider was missing and nothing was blocked by the environment.
    Auth: POST /api/v1/auth/sign-in/email gives the bearer set-auth-token.

    B1: sync state is one durable record, readable over the API (pass)

    • GET /api/v1/data/sys_knowledge_sync_state returns 1 row for showcase-showcase_task_notes: build_trigger: boot, build_status: done, discovered 8, indexed 8. Message: "The build finished: every row was read, and the index recorded the build." (R/B-syncstate-before-restart.json)
    • POST /api/settings/knowledge/index_status gives the same build, failures.count: 0, queue.pending: 0 (R/B-index_status-1.json).
    • POST /api/settings/knowledge/rebuild {"source":"showcase-showcase_task_notes"} gives status: running, trigger: operator. 2 s later the row reads build_trigger: operator, build_status: done, with a new build_id (R/B-rebuild-1.json).
    • A runtime source r4_smoke_tasks (draft PUT ?mode=draft then POST .../publish, both 200) got its own row build_trigger: reload, done, indexed 8 (R/B-ks1-draft.txt, R/B-ks1-publish.txt).
    • Setup → "Knowledge Sync Status" (/_console/apps/com.objectstack.setup/sys_knowledge_sync_state) lists 3 rows: Source, Build Status Done, Finished At, Failed Syncs 0. Screenshot R/shots/B-setup-knowledge-sync-status.png.

    B2: persisted across restart on the same DB (pass)

    • Before restart: showcase-showcase_task_notes created_at 00:00:37.500Z, r4_smoke_tasks created_at 00:02:15.133Z.
    • SIGTERM, then a reboot with the same -d file:R/db/data.db. After the reboot both rows are present with the same created_at, and the build fields hold the new boot build (trigger: boot, done, indexed 8). The memory store keeps no index across a restart, so it rebuilds at boot by design. The runtime-authored source and its edited label were reloaded (R/B-syncstate-after-restart.json, R/B-search-after-restart.txt).
    • Limitation: a persisted failure_count across restart was not exercised (no dead-letter was induced). The multi-node and restart arms are scored by the A2 suite at the engine layer (real ObjectQL + SqlDriver, no HTTP).

    B3: search_knowledge hits carry the declared metadataFields (pass)

    Call: MCP POST /api/v1/mcp tools/call search_knowledge as the admin bearer (R/mcp.sh).

    • Code source (metadataFields: [status, priority]), query "pipeline": hit 95vWZfBBjmSC3XMq "Ingest pipeline" with metadata: {status: in_progress, priority: urgent}. This matches the record (R/B-search-2.txt).
    • r4_smoke_tasks (metadataFields: [priority]): the same record's hit carries metadata: {priority: urgent} only. A field the source does not declare is not answered (R/B-search-3.txt).
    • After an edit to [status, priority] plus a record change (PATCH /data/showcase_task/eswsQ3HZH7YqJzon notes="... quokkavelvet ..."), query "quokkavelvet" with no restart: hit metadata: {status: todo, priority: medium}, snippet carries the new notes, and the label is the edited one (R/B-search-4.txt). The record-change sync and the hot reload both work.

    B4: invalid source refused with a named rule (partial; wording fail)

    Live save door (showcase, knowledge service mounted). Each draft PUT is refused before anything is written, then publish gives 404 NO_DRAFT:

    source.object / field status answer
    r4_absent_obj (absent, unprefixed) 503 SERVICE_UNAVAILABLE "whether you may search object 'r4_absent_obj' could not be judged (the security service did not answer which fields ... you may read) ... try again."
    sys_r4_absent (absent, sys_) 403 FORBIDDEN "'sys_r4_absent' is a system object that does not opt into AI reads"
    showcase_task + content r4_no_such_field 403 FORBIDDEN "you may not query field 'r4_no_such_field' ... (it is hidden from you, or served to you masked)"

    Reproduced on a second boot (R/B-bad-repro2.txt; first boot R/B-bad-*-draft.txt).
    Cause, from source: KnowledgeService save admission (knowledge-service.ts ~3750-3865, knowledge-source-admission.ts admitObject) runs before the reference rules and has no "object or field does not exist" arm. An absent object falls through field-answer-unavailable to the default branch, which is a 503 with "try again". The wording came with #37676 (2026-11-27), in the same knowledge feature wave, not in the commits listed for this leg.

    Named rules where they are reachable:

    Verdict: refusal works (nothing invalid is written). The rule naming fails at the live door: a permanent authoring error is reported as a transient 503 "try again", or as a permission problem. Severity: UX defect, not release-blocking.


    Leg X (coordinator): ERROR [knowledge] the start of the build ... was not recorded at every boot

    (1) Confirmed.

    • Fresh boot, fresh DB Add metamodel interfaces for ObjectQL/ObjectUI contract #1 (:41400): R/B-boot1.log:175 ERROR, plus :207 WARN Insert operation failed {"object":"sys_knowledge_sync_state","error":"UNIQUE constraint failed: sys_knowledge_sync_state.id"}.
    • Reboot over the same DB Add metamodel interfaces for ObjectQL/ObjectUI contract #1: R/B-boot2.log:175 ERROR, plus 2 UNIQUE warnings (one per source, both rows already existed).
    • Fresh boot, fresh DB ✨ Set up Copilot instructions #2 (:41401): R/X-boot-fresh2.log:175 ERROR plus :207.
    • Reboot over DB ✨ Set up Copilot instructions #2 with --log-level debug, then an operator rebuild (R/X-boot-reboot-debug.log): boot gives the ERROR at line 3350 with the UNIQUE warning at 3338. The operator rebuild 4 s later fails the same way (UNIQUE warning 4107, DEBUG [knowledge] the start of the build ... was not recorded at 4112). It is demoted to debug because the error is reported only once per process.

    (2) Constraint and cause. The constraint is the primary key sys_knowledge_sync_state.id (the source key; the platform message calls it 'Source Key'). It is not a race between two producers. It is deterministic on any source whose row already exists:

    • ObjectStoreKnowledgeSyncState.upsert (packages/services/service-knowledge/src/knowledge-sync-state.ts:327-335) does updateWhere({ id: key }, data), then insert if that returned 0, then on an insert error updateWhere again, else throw.
    • updateWhere → affectedRows(engine.update(..., { where: { id: key }, multi: true })) (:189-192, :316-320) accepts only a number or {count}.
    • A scalar where.id is routed by ObjectQL to the by-id write (packages/objectql/src/engine-update.ts ~245: "a scalar where.id becomes the by-id fast path"; engine-update-dispatch.test.ts:180 {where:{id:'a'}} → by-id). That path returns the updated record, not a count (engine.ts ~6330: "the record for the single-record form, the affected-row count for the predicate form"). So affectedRows reads 0 although the row was updated. Then the insert hits the PK, the second update writes again and reads 0 again, and it throws. recordBuildStart catches the throw and calls syncStateWriteFailed.
    • Proof that the updates land: after each failing start, the row holds the new build_id, build_trigger and build_started_at. Example: after the operator rebuild the row went kbuild_c03f2ada…/boot → kbuild_f59f84f9…/operator. finishBuild/progressBuild (where {id, build_id}, predicate path, count returned) land normally: 0 "another build has taken the source over" lines.
    • On a brand-new DB it still fires at the first boot because recordSources() (kernel:bootstrapped, knowledge-service-plugin.ts:702) inserts the row before buildSourcesAtBoot() calls startBuild.

    (3) User-visible effect. The sync state is correct, not wrong, stuck or missing. Row, index_status and Setup all show the right trigger, status, times and counts (B1/B2 evidence; no syncStateError in index_status). Real effects:

    • (a) A false ERROR at every boot of every deployment that mounts the knowledge service with at least one source. It tells the operator to "check that schema sync ran for sys_knowledge_sync_state", which is wrong advice.
    • (b) The once-per-process error report is used up by this false alarm, so a genuine later sync-state write failure in that process is logged only at debug and goes unseen. This defeats the "said once" design promised in feat(service-knowledge): each source's sync state is one durable record, the same on every node #38307 ("the server log reports one error and says how to fix it").
    • (c) 2 wasted writes and 1 failed insert, with a WARN, on every build start.
    • (d) syncStateRecorded is not set on that path, which is harmless: it causes one extra ensure read later.

    (4) Severity. A log-level bug, not release-blocking: no data is lost or misreported. It is worth fixing before or soon after the release because of (a) and (b). Possible fixes, for the PM to weigh: count the by-id result as 1 when it is non-null, or write the start as a predicate update / use updateById. Add a test that asserts logger.error is not called during a rebuild over an existing row (the current harness mocks the logger and never checks it).


    Leg C: Studio form in the real console (Playwright, chromium, deviceScaleFactor 1)

    Vendored console: packages/console/dist/index.html mtime 2026-11-28 23:54:31 (built by another runner at this sha). It contains the #38329 binding code: the minified declaredBoundObjectPath walk with "field-ref","field-multi","filter-builder","action-multi" in assets/metadata-admin-*.js. Scripts are in R/pw/, screenshots in R/shots/.

    • List: /_console/studio/com.example.showcase/metadata/knowledge_source shows "ObjectStack Showcase is read-only. A new Knowledge Source is created in its customization package, com.example.showcase.custom."
    • Create (create.js): New Knowledge Source → /_console/studio/com.example.showcase.custom/metadata/knowledge_source/new. Filled Name, Label, Description; Kind = "Records of an object"; Object = Task (showcase_task). After the object was chosen, the Content/Filter pickers changed from "No object bound" to the object's fields: Title, Notes, Status and Priority were picked, so the source.object binding works live. Also filled where JSON, Strategy Recursive, 600/100. Save → PUT /api/v1/meta/knowledge_source/r4_studio_tasks?mode=draft&package=com.example.showcase.custom 200, POST .../publish 200. The server item matches exactly, _diagnostics.valid: true (R/C-created-item.json). Screenshots C-new-form-empty.png, C-create-filled-records.png, C-create-after-save.png.
      • In create mode the form shows only name, label and description from Basics, plus Records. aiExposed, adapter and Refresh are hidden by design (ResourceEditPage.tsx ~876-911: create mode collapses to identity fields plus required fields; edit mode shows the full form). Not a defect.
    • Edit (edit.js): Edit → label changed to "R4 Studio tasks (edited)", the Status filter field removed ("Remove status" button), Longest passage 400. Save → draft PUT 200, publish 200. Server: metadataFields: ["priority"], maxChars: 400, label updated, the rest unchanged (R/C-edited-item.json). Then search_knowledge sourceIds:["r4_studio_tasks"] gives a hit from showcase_custom-r4_studio_tasks with metadata: {priority: medium} and the edited label (R/C-search-studio-source.txt). Screenshots C-edit-readonly.png, C-edit-basics.png, C-edit-changed.png, C-edit-after-save.png.
    • Finding (minor UI fail): for this source, which stores no aiExposed and no refresh, the "Searchable by AI agents" switch and the "Sync on record changes" switch render off (aria-checked="false", data-state="unchecked") in both read-only and edit mode. Their effective defaults are on: schema default: true, the help text says "On by default", and the source is in fact searched. Reproduced on 2 fresh loads (switch.js, DOM read after the screenshot confirmed the page had rendered; C-edit-basics.png shows the off switch). Automation self-check: no clicks touched those switches, and the server item keeps aiExposed/refresh absent after the edit save. An author reading the form would believe the source is hidden from agents and not synced. Likely the generic SchemaForm boolean rendering of an unset default-true key (not knowledge-specific; not confirmed against other types). Severity: low.
    • Not verified: whether name (form row immutable: true) is locked in edit mode. The input was not disabled, and readOnly was not checked.

    Blocked

    None. Not driven live, and scored only by unit/engine pins (partial per rule 6): the runtime publish-gate arms of the lint rule (whole-collection and closure), ai_context id, markdown body-less headings, and a persisted failure count across restart.

  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Close-out 2026-11-29T00:47Z (checklist-test §5). The per-clause evidence is in the four runner comments above.

    Extracted: #38418 · platform-core.boot-health · acceptance[2]
    Extracted: #38419 · off-checklist knowledge-retrieval · leg B4
    Extracted: #38420 · off-checklist knowledge-retrieval · leg C
    Extracted: #38422 · fixture · qa-fixture contributor-member step 3
    Extracted: #38426 · checklist accuracy · seven P0 items
    Parked-on: #38423 · access-security.rls-both-sides · acceptance[5] (private dependency, knownGaps[0])
    Parked-on: #38423 · access-security.crud-permission-matrix · acceptance[5] (dependency #23267)
    Parked-on: #38423 · studio-authoring.first-run-loop · zh-CN leg not run
    Parked-on: #38423 · platform-core.builtin-apps-nav-render · Marketplace catalog (environment)

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