You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Ruled: 7073468878 · letter A · 2026-11-22T03:20Z
Split from #35549 by seat 5 (area ux-1): an out-of-scope finding from the PR 2 dev report (7022170405). ⛔ Not a claim.
What happens today
crypto.randomUUID() exists only in a secure context (https, or localhost).
In Chromium with isSecureContext === false (measured on about:blank), a grid header click threw TypeError: crypto.randomUUID is not a function, and no sort was applied.
A Console served over plain http from a host other than localhost would hit the same error. That was not measured on a real deployment.
ui/packages/plugin-list/src/ListView.tsx calls it unguarded at handleHeaderSort and two other sites (lines 876, 882 and 6028 at eca20d2).
conditions/conditionModel.tsnewConditionId already guards the same call.
Other unguarded call sites in ui/packages/*/src at eca20d2, unverified for reach:
components/custom/{sort,filter}-builder.tsx
app-shellRecordDetailView.tsx, viewFilterFold.ts and ScriptCapabilitiesField.tsx
core/actions/TransactionManager.ts
plugin-chatbot/utils.ts
plugin-viewview-config-utils.ts and SharedViewLink.tsx
typescomplex.ts and complex.zod.ts
What to do
Use one shared id helper, which falls back when randomUUID is absent, in place of each bare call. Reuse the guarded shape from newConditionId.
Pin it: with crypto.randomUUID deleted, a header-click sort still applies.
Done when
In a non-secure context, header sort, filter and sort builders and the other listed sites mint ids without throwing. A test pins the fallback.
Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · Broken (on a non-secure origin, plain http off localhost, a grid header click throws crypto.randomUUID is not a function and the list does not sort) · end users of self-hosted deployments served over plain http · measured in Chromium → p2 as set; it goes to p1 if a self-hosted customer on an intranet http origin reports it, since sorting is a core list act there.
Claim: area ux-2 (lease:ux-2, leased by seat 5 at 11-21 03:28Z under Bill 11-21 03:25Z 「你继续处理 ux 非专题下的 p2 任务,并发3」; picked by ux-2 per seat 05:26Z) · 2026-11-21T05:28Z
Area: ux-2
Session: session_01Utp6CZrgaiMgTJCnswR6jQ
Account: os-bill
Seat: repo:objectstack#5
Branch: claude/issue-35645-random-uuid-fallback
Domain: domain:ui
File surface: one shared id helper (falls back when crypto.randomUUID is absent, the guarded shape of newConditionId) placed in a package the call sites already depend on, plus its export. The one-line call-site swaps at the 26 unguarded crypto.randomUUID calls in ui/packages/*/src on origin/main: plugin-listListView.tsx (4); componentscustom/sort-builder.tsx (3) and custom/filter-builder.tsx (1); app-shellRecordDetailView.tsx (2), viewFilterFold.ts (1) and ScriptCapabilitiesField.tsx (1); coreactions/TransactionManager.ts (2); plugin-chatbotutils.ts (3); plugin-viewconfig/view-config-utils.ts (3) and SharedViewLink.tsx (3); typescomplex.ts (1) and zod/complex.zod.ts (1). Also their tests and a changeset. ⛔ No packages/spec/**, no new cross-package dependency edge, and no change to the logic around a call site. Stop and report on any breach.
Clause-②: no
Metadata-protocol: none
Premise: holds on origin/main. The listed sites call crypto.randomUUID() bare, which throws in a non-secure context (plain http off localhost). conditionModel.tsnewConditionId already guards it.
Serial constraints cleared: none blocking. Open PRs #35991 (filter-builder.tsx, ListView.tsx), #35918 (ListView.tsx) and #35977 / #35983 / #35984 (RecordDetailView.tsx) touch the same files. The swaps here are single-expression edits at the call lines, so whichever lands later merges main.
Pre-claim deps: parent #35549 closed (not an epic).
Prior rulings read: card thread → triage only (p2, p1 if a self-hosted intranet http customer reports it).
Review path: L1-a. Approver handoff if Tier H or over 3,000 lines.
Release: area ux-2 · 2026-11-21T05:29Z · releases claim 7057939680
Session: session_01Utp6CZrgaiMgTJCnswR6jQ
Reason: this card is out of the current rule. Bill (11-21 03:25Z) allows area:ux p2 cards that sit under no epic, but this card's parent #35549 is itself a child of the list epic #35547. Seat 5 ruled the release at 05:29Z.
State: no branch was pushed and no PR was opened. The dev was stopped before any write, and its worktree is removed. The card goes back to pm:queue unassigned, and its body still describes the full scope.
Ruling-ref: maintainer 2026-11-21T13:1xZ, verbatim: 「同意」, approving triage's non-topic re-grade: p1 = "this week, or someone loses": main or release blocked, data silently wrong or lost, a common function that errors, AI taught wrong, an outside user's report.
2026-11-21T13:16Z · p2 → p1 on the maintainer's word: a common function that errors: on a plain-http deployment, clicking a column header to sort throws and does not sort. Lane and state unchanged.
Seat intake · 2026-11-22T02:30Z · the maintainer gave this p1 to seat repo:objectstack#1 in its project chat (「这些全部接,能派的立刻派」, 2026-11-22T02:27Z), together with #36005, #36082, #35645, #35831 and #33581. Each goes to its own card thread. Order inside the running cap of 10: #36005 now, then #36082, #35645, #35831 and #33581 as slots free. Each thread sends a premise first, and the seat then writes the Claim: and flips the labels. Until then this card stays on pm:queue with no assignee (the queue rule); this note is the hold.
Release: handover to seat repo:objectstack#4 · 2026-11-22T02:42Z · the maintainer told seat 1 to finish only its work in hand and to hand later work to seat 4 (2026-11-22T02:39Z). Handover in seat 4's mailbox #36124 (comment 7073058497) with this card's state, brief and conflict points. Seat 1 holds nothing on this card now.
Claim: PM loop · area a4-F · 2026-11-22T02:57Z
Session: session_01FEkQ5oY5WCqqqBMtn9qt7m
Account: os-project-manager
Branch: claude/issue-35645-random-uuid-fallback
Worktree: objectstack-issue-35645
Domain: domain:ui
Seat: repo:objectstack#4
Area: a4-F
File surface: one shared id helper that falls back when crypto.randomUUID is absent (the guarded shape of newConditionId in ui/packages/plugin-list/src/conditions/conditionModel.ts), placed in a package every call site already depends on, plus its export; the one-expression swaps at each bare crypto.randomUUID call in ui/packages/*/src at origin/main a5a5312 (27 lines in 12 files: plugin-list ListView.tsx; components custom/sort-builder.tsx, custom/filter-builder.tsx; app-shell views/RecordDetailView.tsx, views/viewFilterFold.ts, views/metadata-admin/inspectors/ScriptCapabilitiesField.tsx; core actions/TransactionManager.ts; plugin-chatbot utils.ts; plugin-view config/view-config-utils.ts, SharedViewLink.tsx; types complex.ts, zod/complex.zod.ts); tests; a changeset. No packages/spec/**, no new cross-package dependency edge, no change to the logic around a call site (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: high (seat area order a4-F)
Clause-②: yes (expected widening: one new exported id helper on a published @object-ui/* package; measured on the built declarations by the dev; the area runs the declaration L2 at TIER_DEFAULT)
Metadata-protocol: none
Responsibility: objectstack ui/** call sites that mint ids with a bare crypto.randomUUID() | none: newConditionId guards one site, no shared helper exists | every Console user on a deployment served over plain http off localhost; a column-header sort throws crypto.randomUUID is not a function and does not sort
Thread-read: 7073077819
Premise: holds — 27 bare crypto.randomUUID lines in 12 files under ui/packages/*/src at origin/main a5a5312 (grep, tests excluded); newConditionId is the one guarded site.
Pre-claim lane: repo:objectstack whole-repo lane; all paths ui/packages/** (domain:ui); hand-over from seat repo:objectstack#1 (mailbox #36124 comment 7073058497, release 7073077819); seat 1's intake note 7072952006 is void; seat 5's claim 7057939680 was released by 7057959393.
Pre-claim deps: parent #35549 closed; no Blocked-by: line.
Prior rulings read: card thread → triage p2 (7023088104) and the p2 → p1 re-grade on the maintainer's 「同意」 (7063155521); no ruling on id minting. Tree surface grep over the five main files: 152 hit lines, none about id generation.
Fold-or-serial: not folded. Shared files with work in hand elsewhere: RecordDetailView.tsx (seat 1 #36147), plugin-list ListView.tsx (seat 1 PR #36223). The swaps are single expressions at the call lines; overlap-check before each push, the second lander merges main and keeps both.
Serial constraints cleared: none blocking at origin/main a5a5312; open PR #36223 (plugin-list) and seat 1's #36147 thread share files, textual only.
{
"issue": 35645,
"status": "needs_decision",
"branch": "claude/issue-35645-random-uuid-fallback",
"pr": null,
"session": "session_01FEkQ5oY5WCqqqBMtn9qt7m",
"premise_still_valid": false,
"summary": "Premise falsified for the Console: ui/apps/console/index.html already ships an inline classic script (installInsecureOriginRandomUuid, objectui#4563) that installs an RFC-4122 v4 crypto.randomUUID built on crypto.getRandomValues during HTML parse, before any module chunk runs, so on a plain-http non-localhost origin every bare call site (ListView header sort included) finds the method. Measured in Chromium on an insecure origin (http://192.0.2.2, isSecureContext false) against both the published @objectstack/console@18.6.0 dist/index.html (app booted to /login; randomUUID is a function, non-native, returns a v4 id; zero randomUUID page errors) and the source index.html under the Console vite server, with a same-origin control leg (a dev preview page without the shim reads typeof crypto.randomUUID as undefined). The card's own repro was measured on about:blank, which has no shim, and the card says it was not measured on a deployment. What survives is only a library-level gap: the bare calls in published @object-ui packages would throw on an insecure origin in a host other than the Console, and no such host was found (hotcrm and gallery ship metadata only); implementing the card would also reverse objectui#4563's deliberate host-shim design and flip its pinned repro tests, so no code was written and the choice goes to the maintainer.",
"tests": "No diff, so no new tests. Base-tree readings at a5a5312ff4: (1) published-artifact probe: npm pack @objectstack/console@18.6.0, dist/index.html served by python http.server bound to 192.0.2.2, Playwright + /opt/pw-browsers/chromium -> {isSecureContext:false, type:function, native:false, sample:cf7f960f-47f5-4b85-a070-b9c3f027942f}, page redirected to /login, pageerrors matching randomUUID: [] (total 0). The shim is the 5th of 7 script tags in that file; the only module entry is the 7th and deferred. (2) source probe: Console vite dev server on 0.0.0.0, http://192.0.2.2 index.html -> {isSecureContext:false, type:function, native:false}; control leg on the same origin, inbox-arrival-preview.html (no shim) -> {isSecureContext:false, type:undefined}. (3) existing pins, under os-verify-lock: pnpm --dir ui exec vitest run apps/console/src/__tests__/insecure-origin-crypto.test.ts apps/console/src/__tests__/insecure-origin-crypto.placement.test.ts -> VERDICT command-exit 0, Test Files 2 passed (2), Tests 20 passed (20); these include 'throws the card verbatim TypeError with no shim installed' (toFilterGroup / toSortItems) and 'renders the same filter and sort normally once the shim has run'. Builds for (3): pnpm --filter @objectstack/spec build (VERDICT command-exit 0) and the @objectstack closure of @object-ui/console with OS_SKIP_DTS=1 (VERDICT command-exit 0). Static read: packages/cli/src/utils/console.ts stampScriptNonce stamps every script start tag with the CSP nonce, so the inline shim passes the served CSP. No ablation: no behaviour changed.",
"gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack -> exit 2, 'this branch changes nothing against origin/main (merge base a5a5312ff) - nothing to derive'. No PR, so no check-runs to cite.",
"dogfood_battery": "n/a - no PR, no `!` title, no (narrowing) arm",
"line_budget": "n/a - no diff",
"net_added_lines": 0,
"files_changed": [],
"deviations": "(1) The probe branch claude/issue-35645-random-uuid-fallback was pushed empty (at origin/main a5a5312ff4) before the premise check, per the os-dev landing-marker rule; it has no commits and no PR - the seat may delete it or reuse it. (2) Local closure build used OS_SKIP_DTS=1, enough for vitest, no .d.ts read. (3) Zone 1 quotes the card's What-to-do as a ruling; the only maintainer ruling on the card is the p2-to-p1 re-grade, whose reason (a plain-http Console header sort that throws) is what was measured false, so per os-dev rule 6 this reports instead of executing. (4) Zone 2 readings, for the record: re-grep at a5a5312ff4 finds 27 randomUUID lines in 12 files under ui/packages/*/src (tests excluded) and none in ui/apps/*/src outside tests; only 10 are bare unguarded calls, in 5 files of 4 packages (plugin-list ListView.tsx 3, components filter-builder.tsx 1 and sort-builder.tsx 1, app-shell RecordDetailView.tsx 2, plugin-view view-config-utils.ts 3); 5 are already guarded (conditionModel newConditionId, sort-builder normalize, core TransactionManager generateId, plugin-chatbot generateUniqueId, plugin-view SharedViewLink generateToken); 6 are comments or a script-text string literal (viewFilterFold.ts, ScriptCapabilitiesField.tsx, types complex.ts and zod/complex.zod.ts, the ListView comment). No other spelling (globalThis.crypto, window.crypto) exists. Helper home if option B is chosen: @object-ui/core, a dependency of all four bare-call packages (no new edge); @object-ui/types has no bare call. No code reads or validates these ids as UUIDs (no .uuid() or UUID regex under ui/packages or ui/apps src). Clause-2 not measured: no export was added.",
"mcp_calls": "0",
"api_writes": "1 - POST repos/objectstack-ai/objectstack/issues/35645/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). The git push of the empty branch is not a REST write.",
"open_questions": [
{
"question": "The Console already installs a crypto.randomUUID fallback on insecure origins (objectui#4563 inline shim), so the reported plain-http header-sort crash does not happen in the Console. Close the card, or still replace the 10 bare calls in the published @object-ui packages with one shared helper?",
"options": [
"A Close as already fixed in the Console: post the measurement and close; keep the host shim as the one guarantee. Cost: none. Business need: no host other than the Console was found that renders these packages on an insecure origin. Long-term: one guarantee that also reaches vendored chunks, which a per-call-site helper cannot. AI-error: the shim makes any future bare call safe in the Console; a helper does not stop the next bare call. Startup focus: nothing new ships.",
"B Add a shared id helper in @object-ui/core (getRandomValues-based v4, no new dependency edge), swap the 10 bare calls, route the 5 guarded sites and newConditionId through it, and rewrite the two console repro pins, which would stop throwing. Cost: about 12 files plus tests and a changeset, size S, Clause-2 yes (widening, one new export). Business need: only a hypothetical embedder outside the Console on plain http. Long-term: a second guarantee next to the shim, and a Math.random fallback conflicts with the shim's recorded refusal to degrade. AI-error: neutral without a lint rule, and a new gate defaults to no. Startup focus: widens the public surface with no named consumer."
],
"recommendation": "A, because the measured Console path already works on an insecure origin, the shim reaches callers no helper can (vendored chunks), and B adds a public export and a second mechanism for an embedder nobody has named."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: cloud - not measured: whether the cloud-hosted Console serves @objectstack/console dist/index.html (shim included) or its own HTML. If cloud serves its own HTML, the shim may be missing there. Noted, not filed."
]
}
Ruling: letter A · maintainer 「A 关卡,不改代码」 · 2026-11-22T03:19Z
Ruling-ref: decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XEPGEsUErPnbj7HR3iM4NdN, decision card cmsg_01TenzsRopZj4jMbvjX8uz1X5j5PRKxDnKBaG1kSQEsdsQ, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XMs9noWe3nEaAW2bKPb4ry5 (the maintainer's tap, 2026-11-22T03:18:19Z). It answers the open question of os-dev-report 7073331953.
Governing text: ui/apps/console/index.html (the installInsecureOriginRandomUuid inline script and its comment, objectui#4563), pinned by ui/apps/console/src/__tests__/insecure-origin-crypto.test.ts and insecure-origin-crypto.placement.test.ts. No ADR or AGENTS.md line on the subject.
This card closes as not planned, with no code change. The seat that holds the claim writes the closing note and closes it.
The host page script stays the one guarantee for a non-secure origin. Its two pin tests stay as they are. No shared id helper is added and no export is added (Clause-②: no change).
The closing note records the library-level finding below, so that a later reader finds it.
The cloud-hosted Console page was not measured. The seat files that check as a parked cloud-lane card (domain:cloud, status:parked, repo:cloud), under the maintainer's standing line 「需要转给 cloud的,应该立 cloud 车道卡」.
The empty branch claude/issue-35645-random-uuid-fallback is the seat's to delete.
Option B is not taken, and it is not ruled out for good. A report from somebody who renders the @object-ui packages outside the Console on plain http is the condition for a new card. That card would build the helper on crypto.getRandomValues only, with no weaker fallback, which is the host script's own rule.
Measurement by the decision thread (base origin/maina5a5312, Chromium)
The symptom is absent in the released product. hotcrm main pins every @objectstack/* package at 18.6.0. It was built and served by objectstack start -p 4001, and opened at http://192.0.2.2:4001 (isSecureContext === false), signed in. On the Accounts list, one click on the "Account Name" header reorders the rows A to Z and sends GET /api/v1/data/crm_account?…sort=name. A second click reorders Z to A with sort=-name. Zero page errors. The page was served under the real nonce CSP, so the dev's static read of the nonce stamping is now a measurement.
The host script is what makes it work. Same server and address, with the script body stripped from the document in flight: typeof crypto.randomUUID is undefined, and the Accounts list does not render at all ("Something went wrong · crypto.randomUUID is not a function"). The throwing frame is our own toSortItems, called for the list's initial state, in chunk plugins-views.
The script predates the card.@objectstack/console@18.6.0 (published 2026-11-18) carries it in dist/index.html. The card was filed 2026-11-19, from a repro on about:blank.
Call sites: 10 bare calls in 5 files, as the dev counted. One correction: @object-ui/app-shell is private, so 8 of the 10 are in the three published packages (components, plugin-list, plugin-view).
Library-level finding, for the closing note: in a host without the script, on plain http, the fault is larger than this card says. A list whose view has a configured sort does not render at all.
One argument in the dev report is not relied on: "the script reaches vendored chunks a helper cannot". In the 18.6.0 bundle every third-party caller (the code editor, the uuid library, the error reporter) already guards the call, so there is no such instance today.
Not measured: the cloud-hosted page; browsers other than Chromium. The two pin test files were not re-run by this thread (dev reading: 20 passed).
Analysis and readings: /mnt/project-files/pm-orders/objectstack/35645-decision-analysis.md and /mnt/project-files/pm-orders/objectstack/35645-readings/ (screenshots and the two probe scripts).
Closing: not planned · area a4-F · 2026-11-22T03:23Z · on the maintainer's ruling A 「A 关卡,不改代码」 (record 7073468878, the maintainer's tap 2026-11-22T03:18Z in decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XEPGEsUErPnbj7HR3iM4NdN). No code change.
Release: area a4-F · releases claim 7073243557 · the card closes; the assignee and pm:dispatched come off in the same stroke. The empty probe branch claude/issue-35645-random-uuid-fallback (no commits, no PR) is deleted.
What was measured
The released Console does not show the symptom.@objectstack/console@18.6.0 (published 2026-11-18T00:00Z, before this card) ships the inline host script installInsecureOriginRandomUuid in dist/index.html (objectui#4563; source ui/apps/console/index.html, pinned by ui/apps/console/src/__tests__/insecure-origin-crypto.test.ts and insecure-origin-crypto.placement.test.ts). On a plain-http, non-localhost origin (Chromium, isSecureContext === false), a header click on the Accounts list sorts A to Z and then Z to A with zero page errors (dev report 7073331953; decision thread readings in record 7073468878). That host script is the one guarantee, and it stays.
Library-level finding, kept here for a later reader. In a page WITHOUT that host script, on plain http, the fault is larger than this card says: a list whose view has a configured sort does not render at all ("crypto.randomUUID is not a function", thrown from our own toSortItems for the list's initial state). The bare calls are 10 in 5 files; 8 of them are in the published packages @object-ui/components, @object-ui/plugin-list and @object-ui/plugin-view (@object-ui/app-shell is private).
If anyone reports rendering the @object-ui packages outside the Console on plain http, open a new card under ruling parameter 6 of record 7073468878: one shared id helper built on crypto.getRandomValues only, with no weaker fallback (the host script's own rule), replacing the bare calls.
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Bug · Broken (on a non-secure origin, plain http off localhost, a grid header click throwscrypto.randomUUID is not a functionand the list does not sort) · end users of self-hosted deployments served over plain http · measured in Chromium → p2 as set; it goes to p1 if a self-hosted customer on an intranet http origin reports it, since sorting is a core list act there.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim: area ux-2 (
lease:ux-2, leased by seat 5 at 11-21 03:28Z under Bill 11-21 03:25Z 「你继续处理 ux 非专题下的 p2 任务,并发3」; picked by ux-2 per seat 05:26Z) · 2026-11-21T05:28ZArea: ux-2
Session:
session_01Utp6CZrgaiMgTJCnswR6jQAccount:
os-billSeat:
repo:objectstack#5Branch:
claude/issue-35645-random-uuid-fallbackDomain:
domain:uiFile surface: one shared id helper (falls back when
crypto.randomUUIDis absent, the guarded shape ofnewConditionId) placed in a package the call sites already depend on, plus its export. The one-line call-site swaps at the 26 unguardedcrypto.randomUUIDcalls inui/packages/*/srconorigin/main:plugin-listListView.tsx(4);componentscustom/sort-builder.tsx(3) andcustom/filter-builder.tsx(1);app-shellRecordDetailView.tsx(2),viewFilterFold.ts(1) andScriptCapabilitiesField.tsx(1);coreactions/TransactionManager.ts(2);plugin-chatbotutils.ts(3);plugin-viewconfig/view-config-utils.ts(3) andSharedViewLink.tsx(3);typescomplex.ts(1) andzod/complex.zod.ts(1). Also their tests and a changeset. ⛔ Nopackages/spec/**, no new cross-package dependency edge, and no change to the logic around a call site. Stop and report on any breach.Clause-②: no
Metadata-protocol: none
Premise: holds on
origin/main. The listed sites callcrypto.randomUUID()bare, which throws in a non-secure context (plain http off localhost).conditionModel.tsnewConditionIdalready guards it.Serial constraints cleared: none blocking. Open PRs #35991 (
filter-builder.tsx,ListView.tsx), #35918 (ListView.tsx) and #35977 / #35983 / #35984 (RecordDetailView.tsx) touch the same files. The swaps here are single-expression edits at the call lines, so whichever lands later mergesmain.Pre-claim deps: parent #35549 closed (not an epic).
Prior rulings read: card thread → triage only (p2, p1 if a self-hosted intranet http customer reports it).
Review path: L1-a. Approver handoff if Tier H or over 3,000 lines.
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Release: area ux-2 · 2026-11-21T05:29Z · releases claim 7057939680
Session:
session_01Utp6CZrgaiMgTJCnswR6jQReason: this card is out of the current rule. Bill (11-21 03:25Z) allows area:ux p2 cards that sit under no epic, but this card's parent #35549 is itself a child of the list epic #35547. Seat 5 ruled the release at 05:29Z.
State: no branch was pushed and no PR was opened. The dev was stopped before any write, and its worktree is removed. The card goes back to
pm:queueunassigned, and its body still describes the full scope.1 remaining item
objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling-ref: maintainer 2026-11-21T13:1xZ, verbatim: 「同意」, approving triage's non-topic re-grade: p1 = "this week, or someone loses": main or release blocked, data silently wrong or lost, a common function that errors, AI taught wrong, an outside user's report.
2026-11-21T13:16Z · p2 → p1 on the maintainer's word: a common function that errors: on a plain-http deployment, clicking a column header to sort throws and does not sort. Lane and state unchanged.
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Seat intake · 2026-11-22T02:30Z · the maintainer gave this p1 to seat
repo:objectstack#1in its project chat (「这些全部接,能派的立刻派」, 2026-11-22T02:27Z), together with #36005, #36082, #35645, #35831 and #33581. Each goes to its own card thread. Order inside the running cap of 10: #36005 now, then #36082, #35645, #35831 and #33581 as slots free. Each thread sends a premise first, and the seat then writes theClaim:and flips the labels. Until then this card stays onpm:queuewith no assignee (the queue rule); this note is the hold.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Release: handover to seat
repo:objectstack#4· 2026-11-22T02:42Z · the maintainer told seat 1 to finish only its work in hand and to hand later work to seat 4 (2026-11-22T02:39Z). Handover in seat 4's mailbox #36124 (comment 7073058497) with this card's state, brief and conflict points. Seat 1 holds nothing on this card now.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5oY5WCqqqBMtn9qt7m
Claim: PM loop · area a4-F · 2026-11-22T02:57Z
Session:
session_01FEkQ5oY5WCqqqBMtn9qt7mAccount:
os-project-managerBranch:
claude/issue-35645-random-uuid-fallbackWorktree:
objectstack-issue-35645Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-F
File surface: one shared id helper that falls back when
crypto.randomUUIDis absent (the guarded shape ofnewConditionIdinui/packages/plugin-list/src/conditions/conditionModel.ts), placed in a package every call site already depends on, plus its export; the one-expression swaps at each barecrypto.randomUUIDcall inui/packages/*/srcat origin/main a5a5312 (27 lines in 12 files: plugin-listListView.tsx; componentscustom/sort-builder.tsx,custom/filter-builder.tsx; app-shellviews/RecordDetailView.tsx,views/viewFilterFold.ts,views/metadata-admin/inspectors/ScriptCapabilitiesField.tsx; coreactions/TransactionManager.ts; plugin-chatbotutils.ts; plugin-viewconfig/view-config-utils.ts,SharedViewLink.tsx; typescomplex.ts,zod/complex.zod.ts); tests; a changeset. Nopackages/spec/**, no new cross-package dependency edge, no change to the logic around a call site (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: opus(default tier;dispatch-gates --tier: no path-derived mandate onui/**),effort: high(seat area order a4-F)Clause-②: yes (expected widening: one new exported id helper on a published
@object-ui/*package; measured on the built declarations by the dev; the area runs the declaration L2 at TIER_DEFAULT)Metadata-protocol: none
Responsibility: objectstack
ui/**call sites that mint ids with a barecrypto.randomUUID()| none:newConditionIdguards one site, no shared helper exists | every Console user on a deployment served over plain http off localhost; a column-header sort throwscrypto.randomUUID is not a functionand does not sortThread-read: 7073077819
Premise: holds — 27 bare
crypto.randomUUIDlines in 12 files underui/packages/*/srcat origin/main a5a5312 (grep, tests excluded);newConditionIdis the one guarded site.Pre-claim lane: repo:objectstack whole-repo lane; all paths
ui/packages/**(domain:ui); hand-over from seatrepo:objectstack#1(mailbox #36124 comment 7073058497, release 7073077819); seat 1's intake note 7072952006 is void; seat 5's claim 7057939680 was released by 7057959393.Pre-claim deps: parent #35549 closed; no
Blocked-by:line.Prior rulings read: card thread → triage p2 (7023088104) and the p2 → p1 re-grade on the maintainer's 「同意」 (7063155521); no ruling on id minting. Tree surface grep over the five main files: 152 hit lines, none about id generation.
Fold-or-serial: not folded. Shared files with work in hand elsewhere:
RecordDetailView.tsx(seat 1 #36147), plugin-listListView.tsx(seat 1 PR #36223). The swaps are single expressions at the call lines;overlap-checkbefore each push, the second lander merges main and keeps both.Serial constraints cleared: none blocking at origin/main a5a5312; open PR #36223 (plugin-list) and seat 1's #36147 thread share files, textual only.
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5oY5WCqqqBMtn9qt7m
os-dev-report
{ "issue": 35645, "status": "needs_decision", "branch": "claude/issue-35645-random-uuid-fallback", "pr": null, "session": "session_01FEkQ5oY5WCqqqBMtn9qt7m", "premise_still_valid": false, "summary": "Premise falsified for the Console: ui/apps/console/index.html already ships an inline classic script (installInsecureOriginRandomUuid, objectui#4563) that installs an RFC-4122 v4 crypto.randomUUID built on crypto.getRandomValues during HTML parse, before any module chunk runs, so on a plain-http non-localhost origin every bare call site (ListView header sort included) finds the method. Measured in Chromium on an insecure origin (http://192.0.2.2, isSecureContext false) against both the published @objectstack/console@18.6.0 dist/index.html (app booted to /login; randomUUID is a function, non-native, returns a v4 id; zero randomUUID page errors) and the source index.html under the Console vite server, with a same-origin control leg (a dev preview page without the shim reads typeof crypto.randomUUID as undefined). The card's own repro was measured on about:blank, which has no shim, and the card says it was not measured on a deployment. What survives is only a library-level gap: the bare calls in published @object-ui packages would throw on an insecure origin in a host other than the Console, and no such host was found (hotcrm and gallery ship metadata only); implementing the card would also reverse objectui#4563's deliberate host-shim design and flip its pinned repro tests, so no code was written and the choice goes to the maintainer.", "tests": "No diff, so no new tests. Base-tree readings at a5a5312ff4: (1) published-artifact probe: npm pack @objectstack/console@18.6.0, dist/index.html served by python http.server bound to 192.0.2.2, Playwright + /opt/pw-browsers/chromium -> {isSecureContext:false, type:function, native:false, sample:cf7f960f-47f5-4b85-a070-b9c3f027942f}, page redirected to /login, pageerrors matching randomUUID: [] (total 0). The shim is the 5th of 7 script tags in that file; the only module entry is the 7th and deferred. (2) source probe: Console vite dev server on 0.0.0.0, http://192.0.2.2 index.html -> {isSecureContext:false, type:function, native:false}; control leg on the same origin, inbox-arrival-preview.html (no shim) -> {isSecureContext:false, type:undefined}. (3) existing pins, under os-verify-lock: pnpm --dir ui exec vitest run apps/console/src/__tests__/insecure-origin-crypto.test.ts apps/console/src/__tests__/insecure-origin-crypto.placement.test.ts -> VERDICT command-exit 0, Test Files 2 passed (2), Tests 20 passed (20); these include 'throws the card verbatim TypeError with no shim installed' (toFilterGroup / toSortItems) and 'renders the same filter and sort normally once the shim has run'. Builds for (3): pnpm --filter @objectstack/spec build (VERDICT command-exit 0) and the @objectstack closure of @object-ui/console with OS_SKIP_DTS=1 (VERDICT command-exit 0). Static read: packages/cli/src/utils/console.ts stampScriptNonce stamps every script start tag with the CSP nonce, so the inline shim passes the served CSP. No ablation: no behaviour changed.", "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack -> exit 2, 'this branch changes nothing against origin/main (merge base a5a5312ff) - nothing to derive'. No PR, so no check-runs to cite.", "dogfood_battery": "n/a - no PR, no `!` title, no (narrowing) arm", "line_budget": "n/a - no diff", "net_added_lines": 0, "files_changed": [], "deviations": "(1) The probe branch claude/issue-35645-random-uuid-fallback was pushed empty (at origin/main a5a5312ff4) before the premise check, per the os-dev landing-marker rule; it has no commits and no PR - the seat may delete it or reuse it. (2) Local closure build used OS_SKIP_DTS=1, enough for vitest, no .d.ts read. (3) Zone 1 quotes the card's What-to-do as a ruling; the only maintainer ruling on the card is the p2-to-p1 re-grade, whose reason (a plain-http Console header sort that throws) is what was measured false, so per os-dev rule 6 this reports instead of executing. (4) Zone 2 readings, for the record: re-grep at a5a5312ff4 finds 27 randomUUID lines in 12 files under ui/packages/*/src (tests excluded) and none in ui/apps/*/src outside tests; only 10 are bare unguarded calls, in 5 files of 4 packages (plugin-list ListView.tsx 3, components filter-builder.tsx 1 and sort-builder.tsx 1, app-shell RecordDetailView.tsx 2, plugin-view view-config-utils.ts 3); 5 are already guarded (conditionModel newConditionId, sort-builder normalize, core TransactionManager generateId, plugin-chatbot generateUniqueId, plugin-view SharedViewLink generateToken); 6 are comments or a script-text string literal (viewFilterFold.ts, ScriptCapabilitiesField.tsx, types complex.ts and zod/complex.zod.ts, the ListView comment). No other spelling (globalThis.crypto, window.crypto) exists. Helper home if option B is chosen: @object-ui/core, a dependency of all four bare-call packages (no new edge); @object-ui/types has no bare call. No code reads or validates these ids as UUIDs (no .uuid() or UUID regex under ui/packages or ui/apps src). Clause-2 not measured: no export was added.", "mcp_calls": "0", "api_writes": "1 - POST repos/objectstack-ai/objectstack/issues/35645/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). The git push of the empty branch is not a REST write.", "open_questions": [ { "question": "The Console already installs a crypto.randomUUID fallback on insecure origins (objectui#4563 inline shim), so the reported plain-http header-sort crash does not happen in the Console. Close the card, or still replace the 10 bare calls in the published @object-ui packages with one shared helper?", "options": [ "A Close as already fixed in the Console: post the measurement and close; keep the host shim as the one guarantee. Cost: none. Business need: no host other than the Console was found that renders these packages on an insecure origin. Long-term: one guarantee that also reaches vendored chunks, which a per-call-site helper cannot. AI-error: the shim makes any future bare call safe in the Console; a helper does not stop the next bare call. Startup focus: nothing new ships.", "B Add a shared id helper in @object-ui/core (getRandomValues-based v4, no new dependency edge), swap the 10 bare calls, route the 5 guarded sites and newConditionId through it, and rewrite the two console repro pins, which would stop throwing. Cost: about 12 files plus tests and a changeset, size S, Clause-2 yes (widening, one new export). Business need: only a hypothetical embedder outside the Console on plain http. Long-term: a second guarantee next to the shim, and a Math.random fallback conflicts with the shim's recorded refusal to degrade. AI-error: neutral without a lint rule, and a new gate defaults to no. Startup focus: widens the public surface with no named consumer." ], "recommendation": "A, because the measured Console path already works on an insecure origin, the shim reaches callers no helper can (vendored chunks), and B adds a public export and a second mechanism for an embedder nobody has named." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: cloud - not measured: whether the cloud-hosted Console serves @objectstack/console dist/index.html (shim included) or its own HTML. If cloud serves its own HTML, the shim may be missing there. Noted, not filed." ] }objectstack-fleet commentedon Nov 22, 2026
coordinator#1 · os-project-manager · session_01FEkQ5o9i6CYnwYoQTC2LNd
Ruling: letter A · maintainer 「A 关卡,不改代码」 · 2026-11-22T03:19Z
Ruling-ref: decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1XEPGEsUErPnbj7HR3iM4NdN, decision cardcmsg_01TenzsRopZj4jMbvjX8uz1X5j5PRKxDnKBaG1kSQEsdsQ, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1XMs9noWe3nEaAW2bKPb4ry5(the maintainer's tap, 2026-11-22T03:18:19Z). It answers the open question of os-dev-report 7073331953.Governing text:
ui/apps/console/index.html(theinstallInsecureOriginRandomUuidinline script and its comment, objectui#4563), pinned byui/apps/console/src/__tests__/insecure-origin-crypto.test.tsandinsecure-origin-crypto.placement.test.ts. No ADR or AGENTS.md line on the subject.维护者速读
Ruling parameters
domain:cloud,status:parked,repo:cloud), under the maintainer's standing line 「需要转给 cloud的,应该立 cloud 车道卡」.claude/issue-35645-random-uuid-fallbackis the seat's to delete.@object-uipackages outside the Console on plain http is the condition for a new card. That card would build the helper oncrypto.getRandomValuesonly, with no weaker fallback, which is the host script's own rule.Measurement by the decision thread (base
origin/maina5a5312, Chromium)@objectstack/*package at 18.6.0. It was built and served byobjectstack start -p 4001, and opened athttp://192.0.2.2:4001(isSecureContext === false), signed in. On the Accounts list, one click on the "Account Name" header reorders the rows A to Z and sendsGET /api/v1/data/crm_account?…sort=name. A second click reorders Z to A withsort=-name. Zero page errors. The page was served under the real nonce CSP, so the dev's static read of the nonce stamping is now a measurement.typeof crypto.randomUUIDisundefined, and the Accounts list does not render at all ("Something went wrong · crypto.randomUUID is not a function"). The throwing frame is our owntoSortItems, called for the list's initial state, in chunkplugins-views.@objectstack/console@18.6.0(published 2026-11-18) carries it indist/index.html. The card was filed 2026-11-19, from a repro onabout:blank.@object-ui/app-shellis private, so 8 of the 10 are in the three published packages (components, plugin-list, plugin-view).Analysis and readings:
/mnt/project-files/pm-orders/objectstack/35645-decision-analysis.mdand/mnt/project-files/pm-orders/objectstack/35645-readings/(screenshots and the two probe scripts).objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5oY5WCqqqBMtn9qt7m
Closing: not planned · area a4-F · 2026-11-22T03:23Z · on the maintainer's ruling A 「A 关卡,不改代码」 (record 7073468878, the maintainer's tap 2026-11-22T03:18Z in decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1XEPGEsUErPnbj7HR3iM4NdN). No code change.Release: area a4-F · releases claim 7073243557 · the card closes; the assignee and
pm:dispatchedcome off in the same stroke. The empty probe branchclaude/issue-35645-random-uuid-fallback(no commits, no PR) is deleted.What was measured
@objectstack/console@18.6.0(published 2026-11-18T00:00Z, before this card) ships the inline host scriptinstallInsecureOriginRandomUuidindist/index.html(objectui#4563; sourceui/apps/console/index.html, pinned byui/apps/console/src/__tests__/insecure-origin-crypto.test.tsandinsecure-origin-crypto.placement.test.ts). On a plain-http, non-localhost origin (Chromium,isSecureContext === false), a header click on the Accounts list sorts A to Z and then Z to A with zero page errors (dev report 7073331953; decision thread readings in record 7073468878). That host script is the one guarantee, and it stays.toSortItemsfor the list's initial state). The bare calls are 10 in 5 files; 8 of them are in the published packages@object-ui/components,@object-ui/plugin-listand@object-ui/plugin-view(@object-ui/app-shellis private).When to reopen
If anyone reports rendering the
@object-uipackages outside the Console on plain http, open a new card under ruling parameter 6 of record 7073468878: one shared id helper built oncrypto.getRandomValuesonly, with no weaker fallback (the host script's own rule), replacing the bare calls.