Repository navigation
Description
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
objectstack-fleet commentedon Nov 29, 2026
qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs
Per-clause evidence for #38417, part 1 of 4, as runner r1 wrote it. Paths under
$Sand 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)
main@ff69bcabb2a9ee655980e12810d4ad0d15256479(tree/home/user/objectstack,git log -1confirmed;git status --shortempty at end of run).lsof -ti tcp:<port>empty for each./tmp/claude-0/-home-user/7ab68c8e-cb30-5c49-aeb6-00a9081b4e25/scratchpad/r1(evidence filesev-*.txt, boot logsstock-boot1.log,stock-boot2.log,stock2-boot.log,walled-iso-boot.log,walled-grp-boot.log, verify reportverify-rls.log, pin logsunit-*.log,df/*.log,df-summary.log,units-summary.log).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(posturesingle, confirmed byGET /api/v1/auth/configfeatures.tenancyPosture: "single"on the 41111 boot).node scripts/qa/qa-fixture.mjs walled-boot --posture isolated|group --port 4113x|4114x --dir $S/walled-xxx --member-less EMAIL(fixture provesmultiOrgEnabled: true, the posture,degradedTenancy: false; re-read live:{"multiOrgEnabled": true, "tenancyPosture": "isolated", "degradedTenancy": false}). Torn down withqa-fixture.mjs teardown.@objectstack/verifybootStackand 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 ownos devserver.Tier 1 pins
Unit pins (one vitest run per package,
--maxWorkers=2,--reporter=verbose), all exit 0:Test Files 4 passed (4) · Tests 253 passed (253)2 passed · 29 passed1 passed · 57 passed5 passed · 79 passed2 passed · 22 passedDogfood pins (
packages/qa/dogfood). A first single batch of all 21 files at--maxWorkers=2was OOM-killed (exit 137) mid-run on this shared 15 GB box (two other runners active, load avg ~7); before the kill it reportedwall-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):Tests 23 passed (23)(the 2 batch failures do not reproduce solo → environment/timing)describe.skipIf(!organizationsAvailable); not a scoring pin for any clause here — the items name it only as "purpose-built fixture, does not score")objectstack verify --rlsover the showcasecd $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).── 15 verified, 0 gaps, 0 FAILED, 1 needs-fixture, 8 skipped (0 mismatches); seed141 records landed.── 21 PROVEN (21 consistent, 0 HOLES) · 3 NOT PROVEN (0 member-visible, 0 probe-blocked, 3 skipped).══ 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.[target adopted from existing rows — admin create failed (400)]): showcase_account, showcase_invoice, showcase_invoice_line.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
['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=→[]).GET /api/v1/data/showcase_private_note/<B id>as A →404 RECORD_NOT_FOUND(not-found-shaped denial){"body":"forged"}as A →404 RECORD_NOT_FOUND; admin re-read byte-identical (True, bodyoriginal-b)True)verify --rlsabove:21 PROVEN (21 consistent, 0 HOLES), total38 consistent, 0 HOLES; adopted rows: showcase_account, showcase_invoice, showcase_invoice_lineDerived: partial (A5 blocked by the private-dependency gap, by design).
access-security.write-path-guards (revision 9) — pass
lead_score:10→ 201,droppedFields [{fields:['lead_score'],reason:'readonly'}], headerX-ObjectStack-Dropped-Fields: lead_score;reason=readonly, read-backlead_score None(ev-stock2.txt)lead_score:99→ 200, re-readNoneowner_id… is system-managed — creating a record owned by another user requires the transfer grant"; admin count ofplanted= 0access-security.crud-permission-matrix (revision 13) — partial
PERMISSION_DENIEDverify --rls)15 verified, 0 gaps, 0 FAILED, 1 needs-fixture, 8 skipped; RLS 0 HOLESLive 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
QA OWD project (c1); member_default PATCH → 403PERMISSION_DENIED, row unchangedaccess-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:GET /data/showcase_private_noteGET /meta(+PUT /meta/object/anon_probe)POST /actions/showcase_task/showcase_mark_done/anon-probe-idGET /automation/_statusPOST /batch {"operations":[]}GET /security/explainA4 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 servingshowcase_inquiry. negative[0]: anonymousDELETE /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[],activeOrganizationIdnull); (2) a create-user member who sentset-active {"organizationId": null}(get-session reads null;organization/list= its one org). Evidenceev-noorg-iso.txt,ev-noorg-grp.txt.organization_idset = {its org}; the DB also holds 10 tasks in thedefaultorg, none returned)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."organization_idcount identical before/after every attempt (0→0; totals 30→30 isolated, 20→20 group); same-caller read-back 0 rows (isolated)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)/data/sys_user200,/meta200; no[REST] Unhandled error/ 500 in either walled boot loggrouplegPOST /data/showcase_task {title, project: operator project in that org}→ 403 PERMISSION_DENIED (not 5xx; no SystemWriteOrganizationRequiredError in log); NULL count 0→0Control: 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
qa-org-acreated and set active; positions['org_owner','everyone'],isPlatformAdmin false); operator created packagecom.qa.catalog(201) and saved permission setqa_meta_authorwithsystemPermissions ['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 postureand ADR-0131 D3/D12. Read-backs: object 404, permission set unchanged, package 200, clone 404, flow 404api-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).['and', …], each$:PASSandAST:PASSon id-set equality (eq 9, ne 5, gt 9, gte 9, lt 3, lte 4, in 12, not_in 2, between 10, contains 1 /ORTH0, not_contains 12, starts_with 1 /con0, ends_with 2, like%Industries2 /Hooli1, is_null 12, is_not_null 2, icontainsORTH1, ilike 2, is_empty 12, is_not_empty 2, before 3, after 4). Infix[cond,'and',cond]→ 400 VALIDATION_FAILED$orderby=name&$top=3&$skip=2and$top=4&$skip=5equal the sorted-baseline slices; POST{limit,offset}and{top,skip}equal too$select=name,statusand bodyfields→ key set exactly('name','status')(noid);fields:['account.name']on showcase_invoice → 400 INVALID_FIELD, message namesexpandqa-fixture.mjs contributor-memberfailed at its step 3 (see probes){status:{$nin:'done'}}→ 400 VALIDATION_FAILED, fields[0].fieldquery.where.status.$nin, message names$nin,status, array; AST['status','not_in','done']→ 400 VALIDATION_FAILED atquery.where; GET$filtertwin → 400 INVALID_FILTER; no rows?$pageSize=5→ 400 UNSUPPORTED_QUERY_PARAM listing supported params;?not_a_field=x→ 400 INVALID_FIELD; where unknown field → 400 INVALID_FIELD$in: []→ 200, 0 rows;$nin: []→ 200, 14 rows == baseline$count=true(total 14 with 2 rows),$search=Northwind→ ['Northwind'],$filter(churned set equal),$expand=account(account objects returned){limit:'ten'}→ 400 VALIDATION_FAILED;{not_a_query_key:{…}}→ 400 INVALID_FIELD?$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 rowsapi-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):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-readdone False, progress 55, updated_atunchanged. Ledger row key set has noorganization_idTrue)POST /api/v1/mcptools/call run_action{actionName:'showcase_portfolio_snapshot'}: disabled →isError: true,code ACTION_DISABLED,status 409, same sentence as REST; re-enabled →ok: trueresultos devon samedata.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); rowZiulDtTSUUGxsOxOstill present,active True, created_at 00:00:04.239 / updated_at 00:01:00.692automation.packaged-flow-disable-durable (revision 10) — pass
File DB
$S/stock/data.db, cold restart between twoos devprocesses (second at--log-level info). Evidenceev-flow-1.txt,ev-flow-2.txt,stock-boot2.log.{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']— noorganization_idPOST /automation/showcase_urgent_task_alert/trigger→ 409FLOW_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)_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'.{enabled:true}→ 200; same idbggwc8ReeVSlNObr,active True, updated_at moved (00:00:03.962 → 00:01:01.005);_statusenabled/bound True; final urgent create → runs 1 → 2identity-auth.default-organization-boot-invariant (revision 6) — pass
stock-boot1.log(--log-level info):23:57:12.152Z INFO [default-org] created the Default Organization (org_mx12kzthnsx9jfua)precedes23:57:18.431Z … promoted the platform admin to owner; rows: sys_organizationorg_mx12kzthnsx9jfuaslugdefaultcreated_at23:57:12.149Z< first sys_useradmin@objectos.aicreated_at23:57:17.906Z(file DB boot rather than--fresh, same ordering read)sys_member?organization_id=org_mx12kzthnsx9jfua: adminowner, second user (admin create-user)member; both get-sessionactiveOrganizationId = org_mx12kzthnsx9jfuaorganization_id = org_mx12kzthnsx9jfua, 0 NULLOff-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):
node scripts/qa/qa-fixture.mjs contributor-member --base-url http://localhost:41110fails 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).ERROR [knowledge] the start of the build of source 'showcase-showcase_task_notes' was not recorded (Duplicate record refused on 'Knowledge Sync State' …)preceded byWARN Insert operation failed … UNIQUE constraint failed: sys_knowledge_sync_state.id. Outside my items; flagged for triage.showcase_declarative_connector_pingfetch failedin dogfood logs (compiled self-URL, RUNNER standing fact) — not a finding.Environment notes
--maxWorkers=2OOM-killed (exit 137) under the shared load; per-file re-runs at--maxWorkers=1used for every dogfood verdict.examples/app-showcase/.objectstack/data/exists (git-ignored; tree boots touch it).installed-packages/absent.git status --shortempty.objectstack-fleet commentedon Nov 29, 2026
qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs
Per-clause evidence for #38417, part 2 of 4, as runner r2 wrote it. Paths under
$Sand the scratch directory are the runner's own container and are not kept.Release smoke round — runner r2 record (P0 CLI/boot set)
main@ff69bcabb2a9ee655980e12810d4ad0d15256479(git rev-parse HEADread at start;git status --shortempty, no tracked file edited).qa-fixture.mjs teardown --dir /tmp/r2-pg)./tmp/claude-0/-home-user/7ab68c8e-cb30-5c49-aeb6-00a9081b4e25/scratchpad/r2(written$Sbelow). All logs are under$S/logs,$S/t1,$S/cer,$S/n5,$S/n5b,$S/mcp,$S/ds,$S/dsbuild/out.$S/app, a copy ofexamples/app-showcasewithoutnode_modules/.objectstack/.turbo. Itsnode_modulesis 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.@objectstack/clivitest batch (SIGKILL, run at--maxWorkers=2). I re-ran the files that had not reported at--maxWorkers=1and all of them passed. That kill was the environment, not a test failure.packages/console/distwas 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
Tier 1 pins (run first)
Commands:
pnpm --filter <pkg> exec vitest run --reporter=tree --maxWorkers=2 <files>, then--maxWorkers=1for the cli re-run. Logs are$S/t1/{cli,cli-rerun,runtime,security,mcp}.log.cli.dev-boot-contract (rev 10): 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/readyanswered 200{"status":"ready","state":"running","seed":"settled"}. Log:$S/logs/boot1.logPOST /api/v1/auth/sign-in/emailadmin123 answered 200. I restarted on the same DB with--admin-password changed99($S/logs/boot2.log). After that, admin123 answered 200 and changed99 answered 401INVALID_EMAIL_OR_PASSWORD. I judged the seed by the auth responses, not the banner-d file:gave🗄️ Database: file:$S/db/main.db. EnvOS_DATABASE_URL=file:$S/db/env.dbgavefile:$S/db/env.db.-d :memory:gaveDatabase: :memory:and served showcase_task 200. Nothing chosen (OS_HOME unset) gavefile:$S/app/.objectstack/data/objectstack.db. Legacy compat-read ($S/app-legacy, dev.db only) gavefile:…/.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 datasourceqa_home+datasourceMapping [{default:true, datasource:'qa_home'}], object sharingModel private) gavefile:$S/cfgdefault/.objectstack/data/qa_home.dbwith no objectstack.db. Retired engine:--database-driver memoryexited 2 (oclif allowlist).OS_DATABASE_DRIVER=memory os dev --freshexited 1 with no Database line.-d memory://printedDatabase: memory://and then✗ … memory:// scheme selects the in-memory (mingo) engine … Use SQLite instead: os dev --fresh … :memory:, exit 1🧪 Fresh OS_HOME: /tmp/objectstack-dev-v04cUbandDatabase: file:/tmp/objectstack-dev-v04cUb/data/objectstack.db. After SIGINT the dir was gone (ls: cannot access). The project.objectstack/datalisting was unchanged before vs after; the earlier boot'sshowcase_external.dbthere is the documented #5594 cwd-relative carve-out-p 41201) printed↪ server bound to port 41202 (requested 41201)and➜ API: http://localhost:41202/. Health on 41202 answered 200src/data/seed/index.tsand 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$S/noconfig,os devexited 1. Stderr carriedRun in a directory with objectstack.config.ts, pass --artifact <path|url>, or run from the monorepo root.$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 errorsExit codes (steps[8]): plain
os devSIGINT gave EXIT 0 (boot2, stale, default, legacy, cfgdefault, envdb, memdb).--freshSIGINT gave EXIT 130.--freshSIGTERM to the os dev pid gave EXIT 143, and the tempdir/tmp/objectstack-dev-elsk1wwas deleted. The no-config case exited 1.cli.organization-ownership-ceremony (rev 13): PASS
Fixtures:
create-objectstack@17.7.0 v17app --skip-install --skip-skills, thennpm install --legacy-peer-deps(exit 0), then its ownobjectstack dev --seed-admin -p 41210 -d file:$S/v17db/v17.dbonce. That gave 69 tables, 43 carrying organization_id, and no ceremony marker. The v17 copy is a blank scaffold, not the showcase.$S/cer/{R,C,D,RD}.db.--dev.os serve, refused, exit 1). Plan run:os migrate organization-ownership --database-url file:C.db --out plan.jsonexited 0 and printed✓ Plan written … no row or table in the database was changed. Plan header: kindorganization-ownership-plan, ceremonyADR-0131 D10, inventoryDigest48695f3c…9ce3, 163 table entries. sha256 of C.db was55d6ca37…084dbefore and after the plan.--applywithout plan: the text run exited 1 with✗ Refused: --apply executes only a plan you reviewed…; the--jsonrun exited 1 with{"error":"apply_refused","reason":"plan-file-required",…}. The checksum was unchanged after both refusals. Production legs compose no telemetry sibling--apply --plan-file plan.json --backup-taken --out apply.json --jsonexited 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, alldone. Marker row: verified_at2026-11-29T00:09:12.859Z, blocking 0, details.checkpoint.shapeGeneration 1, which equalsORGANIZATION_OWNERSHIP_SHAPE_GENERATION = 1(spec migration.zod.ts:215)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 for17.x release. Unmigrated RD.db underos serve --dev: the refusal carried--devin both commands. Migrated C.db:✓ Server is ready, and /ready answered 200 ($S/logs/serveC2.log)os migrate comment-reactions --apply --yesran twice, both exit 0 (Converted 0 reaction(s) … recorded as verified). Thenos migrate apply --allow-destructive --yes --jsonexited 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 was2246d4ee…578ebefore and after, and the row diff was 0. This used a real v17 copy, so the clause can score passcli-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. Firstos serve --devexited 1 before listening, openingThis database carries no organization-ownership markerand namingsys_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_email5297ac0f…) gavePOST /api/v1/auth/reset-password200, 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_iddeclared:com.example.showcase/showcase_task_changedNote on a5 (checklist accuracy, not product data loss):
share_key_account_qualified_contacts_with_managers; the new row hasshowcase_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].retention.maxAge '14d') and the 30d terminal-run retention (sys-automation-run.object.tsmaxAge '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-onlyignorenever backfills it. showcase_invoice_line stays 5→5, where QA runs #33784/#33909 measured 5→10.platform-core.v18-boot-refusals (rev 11): PASS
OS_DATABASE_URL=file:R.db os serve -p 41211exited 1 with 0Server is ready/➜ APIlines. The refusal opensThis database carries no organization-ownership marker, namessys_flow_credential, sys_job, sys_job_queue, sys_metadata, sys_metadata_commit, sys_metadata_history, sys_migration, sys_migration_journal, sys_secret, and containsos migrate organization-ownership --out PLANand--apply --plan-file PLAN --backup-taken. Hits: 0 for17.x release, 0 forfresh installs only, 0 for the code literal (not printed, as documented).os serve --dev(RD.db) spelled--dev --out PLANand--dev --apply --plan-file PLAN --backup-taken$S/cer/R.{before,after}.json): 69 pre-existing tables, 0 row/value/column differences; 73 tables created, all empty; noadr-0131-organization-ownershipmarker. Counts held, e.g. sys_email_template 24→24 and sys_permission_set 8→8$S/authless(plugins: [new SecurityPlugin()], one object, resolved through packages/cli/node_modules).os serve --dev --no-server --preset minimalexited 1:✗ SecurityPlugin cannot boot: its authorization store reads sys_user, sys_member … mount AuthPlugin, or … mount createIdentityObjectsPlugin() from @objectstack/plugin-auth.with no listening lineai.mcp-stdio-fail-closed (rev 10): PASS
Fixture on
$S/mcp/mcp.db, minted on an os dev boot:POST /api/v1/data/sys_user_position(201), password changed, key minted withPOST /api/v1/keys.objectstack start -p 41221 -d file:mcp.dbthrough a JSON-RPC stdio driver ($S/mcp/drive.cjs). Outputs are$S/mcp/out-*.json. Stdout carried 0 non-JSON lines on every session.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).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--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[{status:draft,n:1}], scope visible_to_you. RESTPOST /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}]PERMISSION_DENIED403[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 5PERMISSION_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--log-level info: health 200 and[MCP] Transport not auto-started (HTTP is served per-request at /api/v1/mcp regardless). …; exit 0 on SIGINTaggregate_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.dbfrom the app copy. I captured the boot log to its own file and issued no non-health request beforePress Ctrl+C to stop($S/logs/boot1.window.log).{"success":true,"data":{"status":"ready","state":"running","seed":"settled"}}HTTP 20033 flow(s) 18 bound … · 8 draft, twoℹ … NOT bound — disabled by deployment policylines (deployment-policy class) and 0 ⚠. That half passes. ERROR half: the boot window containsERROR [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 rowWARN Insert operation failed {"object":"sys_knowledge_sync_state","error":{"message":"UNIQUE constraint failed: sys_knowledge_sync_state.id …"}}GET /api/v1/meta/app?id=showcase_appanswered 200; top keystype, items; 1 item with keys name, label, icon, branding, active, isDefault, navigation, …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
--freshboots 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:
cd <copy of examples/app-showcase>.objectstack dev --no-compile --fresh -p <port>(any DB).Press Ctrl+C to stop.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:
sys_knowledge_sync_stateholds one row whose build_id is from that boot, with build_statusdoneand build_messageThe build finished….KnowledgeSyncStateStore.upsert(packages/services/service-knowledge/src/knowledge-sync-state.ts:327) updates first, then inserts, then retries the update, and throws whenaffectedRows()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 ataffectedRowsmisreadingengine.update(..., {multi:true})'s return.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):
⚠ 44 author-time warning(s); steps[3] says 30.examples/app-showcase/test/author-time-advisories.test.tspasses (2/2), so 44 is the current allow-listed count.Seeds: com.example.showcase 141 rows.platform-core.seed-integrity (rev 8): PASS
src/data/seed/index.tswith 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$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 reads14:30:00(canonical). f_datetime reads2026-06-17T14:30:00.000Z. f_password reads••••••••, which is expected-maskedSeeds: com.example.showcase 141 rows, plain with no ⚠. NoSeed loading completed with N droppedline in the boot logdiff sweep1 sweep2is emptyintegration-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.$S/dsbuild(one object, sharingModel private),objectstack buildper 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 valuenode scripts/qa/qa-fixture.mjs external-database --port 41231 --dir /tmp/r2-pg.POST /api/v1/datasourceswith the password in the top-levelsecretanswered 201 withstatus":"ok".POST /api/v1/datasources/qa_ext_pg/testanswered 200{"ok":true,"latencyMs":24,"tableCount":1}. Build-door control (external.credentialsRefauthored) exited 0GET /api/v1/datasources/qa_ext_pg:config:{host,port,database,username},hasSecret:true,redactedConfigKeys:[]. Metadata doorGET /api/v1/meta/datasource/qa_ext_pg: the same config plusexternal.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=datasourcehasSecret:true; qa_nosec_sqlite readshasSecret:false; both haveredactedConfigKeys:[]. The set one is not nullqa_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:falsenaming the keys and no values. Data door: the metadata column has no alias keys. 0 hits forLegacy*-r2across all bodiesqa_plugin_drv, driverqa-plugin-driver, POST answered 201 (stored, status error: no driver factory). Admin and meta doors both readconfig:{"apiSecret":"PluginApiSecret-r2","url":"qa://u@host.example/db"}. The admin door namesredactedConfigKeys:["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/api/v1/datasources/qa_ext_pgwith the admin read's config verbatim answered 200 with status ok./testafterwards answered 200ok:true.hasSecret:trueand the credentialsRef handle are unchanged. PUT answered 405 withallow: DELETE, GET, HEAD, PATCH… requires the manage_platform_settings capability, or the data-door denial). Anonymous: all answered 401 UNAUTHENTICATED. 0 planted-value hitsPer-door refusal table (build exit / runtime status; every message names the key/position and points at external.credentialsRef, or credentialRef for the connector):
datasources.0.config.password: password is a credential…this url embeds a password in its userinfocarries ?password= in its query string${PGHOST}(placeholder)must not inline secrets via authentication … credentialReffailed spec validation: authenticationturso encryptionKey stored row (
qa_turso_enc, file: url, planted directly): the admin door readsredactedConfigKeys:["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
passwordanswered 400, and PATCH with a userinfo URL answered 400. POST with an empty-stringpasswordanswered 400.PUT /api/v1/meta/datasource/qa_meta_putwith 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:
136 ok / 5 errors): parent invoices lack currency_code. Item: cli.organization-ownership-ceremony.node scripts/qa/qa-fixture.mjs contributor-memberfails 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 403EMAIL_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.os devfor the seed admin is retired at the first non-devos 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 answersAPI_KEY_REVOKED (forced password reset). Admin sign-in with admin123 is refused 403 on os start. fixtures.requires[1] should say to runos user set-password admin@objectos.aifirst. Member keys verify fine.os user set-password(CLI kernel) logsERROR 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
[knowledge] … was not recorded (Duplicate record refused on 'Knowledge Sync State' …)in every boot window. It reproduced on five boots, two of them on fresh--freshtempdirs. It looks like a product regression from feat(service-knowledge): each source's sync state is one durable record, the same on every node #38307 (fd9ac00, 2026-11-28). It is not timing and not my driving. It needs a RUNNER rule 7 re-derivation before anyone acts on it.Blocked
objectstack-fleet commentedon Nov 29, 2026
qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs
Per-clause evidence for #38417, part 3 of 4, as runner r3 wrote it. Paths under
$Sand the scratch directory are the runner's own container and are not kept.Release smoke, runner r3 (P0 browser/mixed)
mainatff69bcabb2a9ee655980e12810d4ad0d15256479(git rev-parse HEADconfirmed), tree/home/user/objectstack, unchanged (git status --shortwas empty at teardown).shots/, at deviceScaleFactor 1 and 1440x900.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.dbA/. Booted 23:55Z, restarted once at about 00:25Z to plant the readonly value (crud clause 7).dbB/. One boot for the whole run: console-login, then the Studio en leg.chromium.launch()from Node, at most 2 browsers at once.oom-kill ... task=chrome-headless) while the other runners' vitest jobs held about 12 GB.Step 0 —
pnpm console:buildpnpm console:build > console-build.log 2>&1from the repo root. Exit 0, wall time about 2 s.turbo:81 successful, 81 total / Cached: 80 cached.@object-ui/console:buildwas a cache hit: the turbo hash of theui/apps/consolesources matched an existing build.@objectstack/console:build:distre-ran.✓ @objectstack/console dist ready (91176 KB) from ui/apps/console, with the tracked sdui.manifest.json. The single-zod canary passed./_console/loadsassets/index-Dn9z2aLu.js. That file has sha256d7acfae5…4173both as served and inpackages/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.jsandscripts/cl-expiry.js, outputsconsole-login.outandcl-expiry-r1.json.shots/cl-01-login-form.png,shots/cl-02-post-login-shell.png.POST /api/v1/auth/sign-in/emailanswered 200 and the page landed on/_console/apps/com.example.showcase/page/showcase_capability_map, with the full shell (sidebar, avatar, bell).GET /api/v1/meta/app 200andGET /api/v1/meta/object?package=com.example.showcase 200. An in-pageGET /api/v1/meta/app?id=showcase_appanswered 200 with 1 item (showcase_app). The URL did not change.POST /api/v1/auth/sign-outanswered 200{"success":true}. ThenGET /api/v1/meta/app?id=showcase_app, with the stale bearer still in localStorage (tokenStill:true), answered 401UNAUTHENTICATED.GET /meta/object?names=sys_user 401andget-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).…/showcase_capability_map), every data call answered 200, and a fresh writePOST /api/v1/data/showcase_categoryanswered 201 (shots/cl-06-relogin-r1.png).401 {"code":"INVALID_EMAIL_OR_PASSWORD"}with noset-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)./_console/homewith a launcher. On this SHA that is no longer true.ui/apps/console/src/components/RootLandingRedirect.tsxresolveDesktopLandingPath(objectstack#36732, the ruling that retired the platform home page) sends a desktop to the first visible product app./_console/homeitself 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.cl-04inconsole-login.outclicked the first showcase link, which was the current page, so no navigation happened. I re-drove the leg incl-expiry.jsby clicking a different link. The results above come from that second run.platform-core.nav-surfaces-render (rev 10) — pass
smoke.log):48 passed, 2 failed. Both reds wereTarget crashed(locator.count: Target crashedon Status × Priority,browser.newContext: Target crashedon 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.meta-app-showcase.json(?id=showcase_app) serves 51 entries: 50 leaves plusnav_sep_reports. Diffed against the SURFACES array (25 pages, 13 objects, 3 filter slices, thetabularview, 3 dashboards, 4 reports, andnav_report_indexas "All reports"), the diff is empty, so no surface needed a hand-walk./_console/apps/com.example.showcase/object_that_does_not_existshows "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_xyzshows "Page Not Found" (shots/nav-badroute-page.png). No pageerror.SMOKE_API_URL=http://localhost:41310 pnpm -C examples/app-showcase test:smoke e2e/showcase-smoke.spec.ts --output=<scratch>/pw-results. I passed--outputso nothing was written to the tree.examples/app-showcase/e2e/.auth/state.jsonwas 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. Outputswalk-admin.json/.log,member-api.json,builtin-extra.json, screenshotsshots/builtin/.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>.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./_console/apps/com.objectstack.setupshows "You don't have access to this app…" with no sidebar (mei-setup-refused.png)./apps/setup/system/settings/mailshows the same screen (mei-settings-url-refused.png). Account opens Profile with Mei's identity (mei-account-opens.png).GET /api/v1/meta/app?id=setupanswered 200{"type":"app","items":[]}. Mei'sGET /api/v1/meta/applists onlyshowcase_appandaccount.?id=setupis 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 403SETTINGS_FORBIDDENfor all 11 namespaces (the admin got 200 on each).nav_organizationsis absent (single-org).nav_business_unitsis present, andsys_business_unitis registered (its list renders).nav_jwksis absent.nav_sso_providersis absent (noOS_SSO_ENABLED). Neither app shows an "All reports" row.?id=studioanswered{"type":"app","items":[]}for the admin and for Mei. That is expected (knownGap)./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).nav_settings_knowledgeandnav_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".nav_account_mobile_appandnav_account_notification_settings.records-forms.crud-roundtrip (rev 22) — pass
Boot A. Scripts
crud.js,crud2.js,crud-api.js,readonly.js. Outputscrud-part1.json,crud-part2.json,crud-api.json,crud-readonly.log.?form=new, button "Create". RequestPOST /api/v1/data/showcase_accountwith body{"industry":"finance","status":"active","sales_region":"amer","name":"os-qa-r3a"}answered 201, idEY1EGc-o0H6cfkiV. The page landed on the record. The filtered re-read returns every value verbatim, andwebsitestaysnull.annual_revenue4242000→4343000 andupdated_atonly.DELETE /api/v1/data/showcase_account/EY1EGc-o0H6cfkiVanswered 200 withrecycleBinEntryId. The filtered GET then answerstotal 0.shots/crud-05-list-after-create-reload.pngshows the row present.shots/crud-11-list-after-delete-reload.pngshows it absent (listShowsAfterDelete:false).?related=timelineafter 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.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.id,created_at,updated_atand the overridden name. Owner half: a contributor-bound member cloned seeded zoo row7oSPnhFwV2Vmx-Ab(owner = admin). Answer 201,owner_idandcreated_by= the member,f_autonumber0001→0003. Readonly half: stopped A, ranUPDATE showcase_contact SET lead_score = 42 WHERE id='2mKAPtVu9ph5ZNgu'(1 row), restarted. The source read giveslead_score 42. The clone answered 201 withdroppedFields:[{fields:["lead_score"],reason:"readonly"}]and headerx-objectstack-dropped-fields: lead_score;reason=readonly. The clone'slead_scoreisnull.GET showcase_invoice/ldbya7K7RNTxqrn0(INV-1003, owner linus@) answered 404 RECORD_NOT_FOUND. The clone answered 404RECORD_NOT_FOUND. Invoice count was 14 before and 14 after.shots/crud-02-empty-name-blocked.png).name: 400VALIDATION_FAILED,fields[0] {field:name, code:required}.tax_id: 400VALIDATION_FAILEDinvalid_format"Tax ID must look like 12-3456789.", and none was stored. All pass.node scripts/qa/qa-fixture.mjs contributor-memberfails at step 3 on this SHA.pending(the RUNNER describes this: unverified addresses are not settled into the org).sys_user_positionPOST is then refused:400 VALIDATION_FAILED … is not a member of the organization.create-user(membershipCreated:true), then change-password, then a position POST (scripts/mint-persona.js,bind.js).data-testid=object-view-new-button)./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, holdingshowcase_contributorandshowcase_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 tostatus:sent+issued_onstarted requestareq_c2c90616-…, whosepending_approversincluded the persona.Scripts
appr1/2/3.js,appr-zh.js. Outputsappr-state.json,appr3.json,appr-zh.json.pnpm console:buildatff69bcab: exit 0, with the ready line above. The servedindex-Dn9z2aLu.jsis byte-identical to the dist copy.grep -o 'approvals:inbox' packages/console/dist/assets/index-*.jshits. Context:Hu({ref:\approvals:inbox`,label:`Approvals Inbox`,source:`@object-ui/console`,component:e=>(0,Q.jsx)(Z.Suspense,…`./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 tabsMy Pending 1 / Submitted by me / All, one request row, and the keyboard hint bar (shots/ap-04-inbox.png).GET /api/v1/meta/appgives["showcase_app","account"](no setup).nav_account_approvals(approvals:inbox) is in the account nav. Landing is the Showcase app, not/home./apps/com.objectstack.account/sys_approval_request/record/areq_c2c90616…with Approve / Reject / More approval actions (ap-06). Approve, then the Confirm dialog, sentPOST /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./actionsgained anapproverow by the persona, and the buttons became Send reminder / Recall / Reply (ap-08).?request=deep link…/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)./_console/apps/com.objectstack.account/showcase_invoice/record/C4EeC8jQjfxSUCO0. The persona's directGET /api/v1/data/showcase_invoice/C4EeC8jQjfxSUCO0answered 200.待我审批 1 / 我发起的 / 全部, the status badge 待审批, and the actions 通过 / 驳回 (ap-10-zh-nav.png,ap-11-zh-inbox.png).com.objectstack.account). The deep link goes to the record's host app (com.example.showcase).ApprovalsInboxPage.tsxopenRequestcites objectstack#35412, "a row opens in the app the inbox is mounted in", and only an inbox with no app segment asksrequestPagePath.pending_approverslists the admin twice (KGDG…x2), because the admin holds both finance and legal. That is cosmetic. Progress countsneed 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.com.example.repairs, namespace derivedrepairs, "Also create an app" unticked. RequestPOST /api/v1/packagesanswered 201{status:"installed",source:"authored"}. It landed on/_console/studio/com.example.repairs/metadata/object. In the same session, thestudio-pkg-switcherlistsShowcase Read-only / Repairs Writable / New package(st-en-04-switcher.png).GET /api/v1/meta/object/repairs_repair_ticketreturns thestatusfield 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).POST /api/v1/data/repairs_repair_ticket {"name":"Broken laptop","status":"in_repair"}, which answered 201.GET /api/v1/data/repairs_repair_ticketreturns it withstatus:"in_repair"(st-en-data.json).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 rawin_repairvalue does not appear (st-en-22-enduser-list.png).GET /api/v1/meta/app?id=repair_centerreturns nav[{type:"object",objectName:"repairs_repair_ticket"}](st-en-meta-app.json).bootB.logholds one✓ Server is readyacross console-login and the whole en loop. I issued no restart.PUT /api/v1/meta/object/showcase_qa_r3_probe?mode=draft&package=com.example.showcaseanswered 422WRITABLE_PACKAGE_REQUIRED. A forged field-add PUT onshowcase_accountanswered 403ITEM_LOCKED(read-only managed package). Neither item exists afterwards.passuntil 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./homeredirects into an app (objectstack#36732). The entry point is now the app switcher's "Add app › New blank app".PUT …?mode=draftfollowed byPOST …/publish.app-navigation-empty.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)
Environment notes
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.scripts/qa/qa-fixture.mjs contributor-memberdefect is described under crud-roundtrip.objectstack-fleet commentedon Nov 29, 2026
qa#2 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs
Per-clause evidence for #38417, part 4 of 4, as runner r4 wrote it. Paths under
$Sand 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 --porcelainempty at the end).Runner: r4. Ports used: 41400 (showcase, file DB
r4/db/data.db), 41401 (showcase, fresh file DBr4/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(writtenR/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
--maxWorkers=2, 30 s)sys_knowledge_sync_staterows andindex_statusagree; operator rebuild recorded; Setup "Knowledge Sync Status" lists themcreated_atacross restart, runtime-authored source reloaded and rebuilt at boot{priority}vs{status,priority}), and follow an edit liveos validate/lint)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).npx vitest run --maxWorkers=2(packages/services/service-knowledge)R/A-service-knowledge.lognpx vitest run --maxWorkers=2 src/validate-knowledge-source.test.ts src/validate-ai-context.test.ts(packages/lint)R/A-lint.log... src/ai/knowledge-source.metadata-form.test.ts src/migrations/semantic-relevance.test.ts(packages/spec)R/A-spec.log... bare-type-display-echo-decisions, object-lifecycle-panel-echo-decisions, bundle-ownership, deployment-level-no-tenant-columnR/A-platform-objects.log... src/audit-writers.test.tsR/A-plugin-audit.log... src/commands/knowledge/knowledge.test.tsR/A-cli.logpnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/ResourceEditPage.formBoundObject-37309.test.tsx(cwdui/; the package-dir invocation is refused by the objectui#3378 guard)R/A-app-shell.lognpx vitest run --maxWorkers=2 test/knowledge-source-studio-roundtrip.dogfood.test.ts(packages/qa/dogfood)R/A-dogfood-studio.log... test/knowledge-source-unmounted-adapter-save.dogfood.test.tsR/A-dogfood-unmounted.logThe 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.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 assertslogger.erroris 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 mountsKnowledgeServicePlugin+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/emailgives the bearerset-auth-token.B1: sync state is one durable record, readable over the API (pass)
GET /api/v1/data/sys_knowledge_sync_statereturns 1 row forshowcase-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_statusgives 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"}givesstatus: running, trigger: operator. 2 s later the row readsbuild_trigger: operator, build_status: done, with a new build_id (R/B-rebuild-1.json).r4_smoke_tasks(draft PUT?mode=draftthenPOST .../publish, both 200) got its own rowbuild_trigger: reload, done, indexed 8(R/B-ks1-draft.txt,R/B-ks1-publish.txt)./_console/apps/com.objectstack.setup/sys_knowledge_sync_state) lists 3 rows: Source, Build Status Done, Finished At, Failed Syncs 0. ScreenshotR/shots/B-setup-knowledge-sync-status.png.B2: persisted across restart on the same DB (pass)
showcase-showcase_task_notes created_at 00:00:37.500Z,r4_smoke_tasks created_at 00:02:15.133Z.-d file:R/db/data.db. After the reboot both rows are present with the samecreated_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).failure_countacross 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/mcptools/call search_knowledgeas the admin bearer (R/mcp.sh).metadataFields: [status, priority]), query "pipeline": hit95vWZfBBjmSC3XMq"Ingest pipeline" withmetadata: {status: in_progress, priority: urgent}. This matches the record (R/B-search-2.txt).r4_smoke_tasks(metadataFields: [priority]): the same record's hit carriesmetadata: {priority: urgent}only. A field the source does not declare is not answered (R/B-search-3.txt).[status, priority]plus a record change (PATCH /data/showcase_task/eswsQ3HZH7YqJzon notes="... quokkavelvet ..."), query "quokkavelvet" with no restart: hitmetadata: {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/ fieldr4_absent_obj(absent, unprefixed)sys_r4_absent(absent, sys_)showcase_task+ contentr4_no_such_fieldReproduced on a second boot (
R/B-bad-repro2.txt; first bootR/B-bad-*-draft.txt).Cause, from source:
KnowledgeServicesave 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 throughfield-answer-unavailableto 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:
knowledgeSources,R/todo-ks):objectstack validateexits 1 withknowledge-source-object-unknown(absent plain object) andknowledge-source-field-unknown.objectstack lintadds the warning arm forsys_r4_absent("platform prefix, but no known package registers it"), as fix(lint)!: knowledge-source review follow-ups: absent platform objects refused at publish, ai_context accepts id, search refusal names list #38038 describes for the CLI.os explain knowledge-source-object-unknowndocuments the closure arm from fix(lint)!: refuse an absent sys_ knowledge source object under a stated closure #38310 (R/D-validate.log,R/D-lint.log,R/D-explain.log).R/D-*-draft.txt). Those arms are scored byvalidate-knowledge-source.test.ts(49 passed, lint unit layer, not HTTP), so they arepartialper RUNNER rule 6.id, and the markdown split keeps headings with no body (fix(service-knowledge): the markdown split keeps every heading with no body, under its own path #38380): scored by unit pins only (validate-ai-context.test.ts,split.test.ts,index-fingerprint.test.tsall green). Not driven live.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 recordedat every boot(1) Confirmed.
R/B-boot1.log:175ERROR, plus:207WARN Insert operation failed {"object":"sys_knowledge_sync_state","error":"UNIQUE constraint failed: sys_knowledge_sync_state.id"}.R/B-boot2.log:175ERROR, plus 2 UNIQUE warnings (one per source, both rows already existed).R/X-boot-fresh2.log:175ERROR plus:207.--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 recordedat 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) doesupdateWhere({ id: key }, data), then insert if that returned 0, then on an insert errorupdateWhereagain, else throw.updateWhere→affectedRows(engine.update(..., { where: { id: key }, multi: true }))(:189-192,:316-320) accepts only a number or{count}.where.idis routed by ObjectQL to the by-id write (packages/objectql/src/engine-update.ts~245: "a scalarwhere.idbecomes 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"). SoaffectedRowsreads 0 although the row was updated. Then the insert hits the PK, the second update writes again and reads 0 again, and it throws.recordBuildStartcatches the throw and callssyncStateWriteFailed.build_id,build_triggerandbuild_started_at. Example: after the operator rebuild the row wentkbuild_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.recordSources()(kernel:bootstrapped,knowledge-service-plugin.ts:702) inserts the row beforebuildSourcesAtBoot()callsstartBuild.(3) User-visible effect. The sync state is correct, not wrong, stuck or missing. Row,
index_statusand Setup all show the right trigger, status, times and counts (B1/B2 evidence; nosyncStateErrorinindex_status). Real effects:syncStateRecordedis not set on that path, which is harmless: it causes one extraensureread 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 assertslogger.erroris 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.htmlmtime 2026-11-28 23:54:31 (built by another runner at this sha). It contains the #38329 binding code: the minifieddeclaredBoundObjectPathwalk with"field-ref","field-multi","filter-builder","action-multi"inassets/metadata-admin-*.js. Scripts are inR/pw/, screenshots inR/shots/./_console/studio/com.example.showcase/metadata/knowledge_sourceshows "ObjectStack Showcase is read-only. A new Knowledge Source is created in its customization package, com.example.showcase.custom."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 thesource.objectbinding works live. Also filledwhereJSON, 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). ScreenshotsC-new-form-empty.png,C-create-filled-records.png,C-create-after-save.png.aiExposed,adapterand 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.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_knowledgesourceIds:["r4_studio_tasks"]gives a hit fromshowcase_custom-r4_studio_taskswithmetadata: {priority: medium}and the edited label (R/C-search-studio-source.txt). ScreenshotsC-edit-readonly.png,C-edit-basics.png,C-edit-changed.png,C-edit-after-save.png.aiExposedand norefresh, 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: schemadefault: 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.pngshows the off switch). Automation self-check: no clicks touched those switches, and the server item keepsaiExposed/refreshabsent 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.name(form rowimmutable: true) is locked in edit mode. The input was notdisabled, andreadOnlywas 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.objectstack-fleet commentedon Nov 29, 2026
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)
fail(boot-health a2) is a product defect: the boot logs an ERROR its own contract forbids, while the stored state is correct. It was extracted as service-knowledge: every boot logs a false ERROR because the sync-state upsert reads a by-id update as "no row changed" #38418 (p1).priority:P0record QA run · priority:P0 (24/24) · c21945d2 · 2026-11-18 · 22 PASS / 2 PARTIAL / 0 FAIL / 0 BLOCKED / 0 NOT-RUN #35091 is already closed, so there is no supersede line.retest-owed.mjsonce each fix lands, and the next post-releasesmoke:npmround re-judges them.