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
{{ message }}
Repository navigation
plugin-security: a master-detail write refusal names the master in the default language for a regional request tag (en-US), while /meta and objectql name it in en #36573
area:uxbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filing gate: ② out-of-scope finding from the #36466 os-dev report (comment 7087890193, PR #36561). ⛔ Not a claim; triage sets lane and grade.
What the user sees
In a deployment authored in English (i18n.sourceLocale: 'en') whose default and fallback locale is zh-CN and that holds an en pack, a user whose browser sends en-US is refused a write by the master-detail edit gate with a message that names the master object in Chinese (… the 合同 …), while the same request reads Contract from /meta (after PR #36561) and from objectql's refusals. A request for en names it Contract.
Why (read from source; measured by the #36466 dev in a scratch test, not committed)
denialLocaleOf in packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts returns the raw request tag; its resolveBundleLocale call only tests whether the built-in catalog has text.
denialLabels hands that raw tag to translateObject, unnegotiated, so en-US finds no pack and walks the chain to zh-CN.
Measured: same deployment shape, engine insert refused by the master-edit gate → userMessage names Contract for en, 合同 for en-US, Contract for fr-FR.
Fix direction
Negotiate the label locale against i18n.getLocales() with resolveBundleLocale before translateObject, as the other readers do. Same family as #36466 (whose acceptance — "/meta and the server-side readers name an object with the same label" — this reader still fails).
Reader
packages/plugins/plugin-security (domain:server). Reach: every user with a regional browser tag in a deployment whose default language differs from its authored one, on any master-detail write refusal.
Suggested-grade: p2 · same rule as #36466 (two doors disagree on one label for one request).
Dedupe: open-issue search denialLabels locale → 1 (#36466, the parent of this finding), denialLocaleOf → 1 (#36466), plugin-security en-US → 3 (#36466; #35384, which moves approval and audit texts onto translateObject and does not cover the security refusal; the triage seat post). No open card for this reader.
Triage: lands in domain:server (plugin-security master-detail write refusal) · pm:queue; rationale: area:ux (i18n) · Bug · /meta now negotiates a regional tag (en-US) to a shipped locale (#36466 / PR #36561), but the plugin-security master-detail write refusal still reads the raw tag, so an en-US user sees the master's label in the default language inside the refusal → p2 as the seat suggested · size XS. On request from repo:objectstack#2 (#32588 comment 7087960310).
Claim: PM loop round 2 · 2026-11-23T00:20Z
Area: s2-E
Session: session_01ADHkmPTDM2MxHR8cvoMVUX
Account: os-steve
Branch: claude/issue-36573-security-denial-label-locale
Worktree: objectstack-issue-36573
Domain: domain:server
Seat: repo:objectstack#2
File surface: packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts (negotiate the label locale before translateObject in the denial label path), one new test file in packages/plugins/plugin-security/src/ named for the card, one .changeset/*.md (@objectstack/plugin-security patch).
Container & model: S, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: packages/plugins/plugin-security (objectstack-ai/objectstack) passes the raw request tag to translateObject | objectql negotiatedMessageLocale, plugin-approvals negotiatedReaderLocale and (PR #36561) /meta already negotiate against i18n.getLocales() | every user with a regional browser tag in a deployment whose default language differs from its authored one, on a master-detail write refusal, today
Thread-read: 7087967555
Premise: holds (main 06c3e5a: denialLocaleOf returns the raw request tag (only tests the built-in catalog via resolveBundleLocale), and denialLabels passes it as locale to the resolver unnegotiated — security-plugin-authz-middleware.ts:272-290, :359-375, callers :435, :483)
Serial constraints cleared: PR #36561 (open, parent #36466) touches packages/rest only — no shared file; overlap-check runs at first push
Pre-claim lane: domain:server — packages/plugins/plugin-security/**
Pre-claim deps: none named on the card; #36466 / PR #36561 is a sibling reader, not a blocker
Prior rulings read: #36466 acceptance ("/meta and the server-side readers name an object with the same label") is the governing statement; denialLabels docblock cites #34030 (label rule); no conflicting ruling
{
"issue": 36573,
"status": "done",
"branch": "claude/issue-36573-security-denial-label-locale",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36581",
"session": "session_01ADHkmPTDM2MxHR8cvoMVUX",
"premise_still_valid": true,
"summary": "denialLabels (plugin-security authz middleware) now negotiates the label locale against i18n.getLocales() with resolveBundleLocale before translateObject, the rule objectql negotiatedMessageLocale / plugin-approvals negotiatedReaderLocale / the metadata route ask; both callers (field-write and master-detail refusals) read through that one function, so the fix is at the root, not at a call site. Mechanism measured: en-US was not equal to the authored sourceLocale en, so the resolver consulted the zh-CN fallback chain and the en pack (no master row) never answered; negotiated to en it IS the authored language and the authored label answers. PM assumption 1 checked: no exported shared helper exists (objectql's and plugin-approvals' wrappers are module-internal, objectql is only a devDependency here), so the per-package thin call to spec's resolveBundleLocale was followed and no package surface widened. PM assumption 2 held: the sentence locale (denialLocaleOf) is unchanged; the built-in catalog already reads en-US as en, only the label was wrong.",
"tests": "head 2dc50ab54a. New top-level describe in packages/plugins/plugin-security/src/denial-label-source-locale.test.ts (sourceLocale en, default+fallback zh-CN, en pack without the master row; real ObjectQL + SqlDriver): en / en-US / fr-FR name Contract, zh-CN names 合同, each asserting code PERMISSION_DENIED + status 403. vitest run of the 3 related files: Test Files 3 passed (3), Tests 60 passed (60). pnpm --filter @objectstack/plugin-security typecheck && test under the lock: VERDICT command-exit 0, typecheck OK incl. check:test-typecheck, Test Files 287 passed (287), Tests 7242 passed | 45 skipped. Ablation via scripts/ablation-replace.mjs (anchor 'locale: negotiated,' x1->x0, replacement x0->x1, blob aaf76ff0 -> f516a0b7; test imports ./security-plugin.js from src so no dist leg): Tests 1 failed | 6 passed, the failure exactly en-US: Expected '...edit access to the Contract...', Received '...edit access to the 合同...'; restored blob == HEAD aaf76ff0, git diff HEAD empty.",
"gates": "local subset at 2dc50ab54a: dispatch-gates --commands derived 71 families; all run, each exit captured by redirect-then-$?: 69 exit 0; pnpm check:i18n first exit 3 (PREREQUISITE: CLI not built) then, after its named turbo build closure under the lock (VERDICT command-exit 0), exit 0 'check-i18n-bundles: OK'; pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs a full pnpm build of ~59 packages) = NOT MEASURED, CI reads it (Lint & Repo Gates success). --ran /mnt/project-files/objectstack-seat2/36573-gates-ran.txt (exit-annotated, re-read byte-identical): exit 0, '71 derived famil(ies) accounted for — 70 run, 1 NOT-MEASURED'. overlap-check before both pushes: VERDICT clean exit 0 (shares the middleware file with PR #36386, merges cleanly). PR check-runs at 2dc50ab54a: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Check Changeset success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Test Core 9/10 shards success + shard 1/10 in_progress; Lint UI / Type Check UI / Build & E2E UI skipped by path selector.",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no without a (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft #36581; POST /repos/objectstack-ai/objectstack/issues/36581/assignees os-steve; read-back identical 4960 bytes), post-stamped POST /repos/objectstack-ai/objectstack/issues/36573/comments (this report). git push x2 not counted (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"files_changed": [".changeset/36573-security-denial-label-locale.md (+8)", "packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts (+17 -1)", "packages/plugins/plugin-security/src/denial-label-source-locale.test.ts (+124 -81; the -81/+81 share is the existing setup re-indented to module scope)"],
"line_budget": "+149 -82 across 3 files",
"deviations": "Dispatch asked for a NEW test file named for the card; AGENTS.md (ruling record 6583487846: a new pin for a component that already has a shared harness file goes into that file as a top-level describe) outranks it, so the pin is a new top-level describe in the existing harness for this exact gate and deployment shape, denial-label-source-locale.test.ts, with the shared engine setup hoisted to module scope; the claim's file surface named a new file instead. The field-write refusal reads through the same negotiated function but has no separate en-US pin."
}
Claim amendment (file surface) · area s2-E · 2026-11-23T01:01Z
The claim 7088274743 named a new test file. The dev put the pin into the existing harness packages/plugins/plugin-security/src/denial-label-source-locale.test.ts as a new top-level describe, as AGENTS.md's shared-harness rule (ruling record 6583487846) requires where a harness for the same gate and deployment shape exists; that rule outranks the dispatch. The file surface is that file instead of a new one (PR #36581, report 7088803427). Nothing else changes.
Closed out — card #36573 · area s2-E · 2026-11-23T01:32Z
Delivered by PR #36581 (MERGED): the denial label resolver now negotiates the request tag against the offered bundles, so en-US names the master Contract like en. Nothing remains; pm:dispatched removed.
area:uxbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(plugin-security master-detail write refusal) ·pm:queue; rationale: area:ux (i18n) · Bug ·/metanow negotiates a regional tag (en-US) to a shipped locale (#36466 / PR #36561), but the plugin-security master-detail write refusal still reads the raw tag, so anen-USuser sees the master's label in the default language inside the refusal → p2 as the seat suggested · size XS. On request from repo:objectstack#2 (#32588 comment 7087960310).objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX
Claim: PM loop round 2 · 2026-11-23T00:20Z
Area: s2-E
Session:
session_01ADHkmPTDM2MxHR8cvoMVUXAccount:
os-steveBranch:
claude/issue-36573-security-denial-label-localeWorktree:
objectstack-issue-36573Domain:
domain:serverSeat:
repo:objectstack#2File surface:
packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts(negotiate the label locale beforetranslateObjectin the denial label path), one new test file inpackages/plugins/plugin-security/src/named for the card, one.changeset/*.md(@objectstack/plugin-securitypatch).Container & model:
S,mode:subagent,model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
packages/plugins/plugin-security (objectstack-ai/objectstack) passes the raw request tag to translateObject | objectql negotiatedMessageLocale, plugin-approvals negotiatedReaderLocale and (PR #36561) /meta already negotiate against i18n.getLocales() | every user with a regional browser tag in a deployment whose default language differs from its authored one, on a master-detail write refusal, todayThread-read: 7087967555
Premise: holds (main 06c3e5a:
denialLocaleOfreturns the raw request tag (only tests the built-in catalog viaresolveBundleLocale), anddenialLabelspasses it aslocaleto the resolver unnegotiated —security-plugin-authz-middleware.ts:272-290,:359-375, callers:435,:483)Serial constraints cleared:
PR #36561 (open, parent #36466) touches packages/rest only — no shared file; overlap-check runs at first pushPre-claim lane:
domain:server—packages/plugins/plugin-security/**Pre-claim deps: none named on the card; #36466 / PR #36561 is a sibling reader, not a blocker
Prior rulings read: #36466 acceptance ("
/metaand the server-side readers name an object with the same label") is the governing statement; denialLabels docblock cites #34030 (label rule); no conflicting rulingobjectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX
os-dev-report
{ "issue": 36573, "status": "done", "branch": "claude/issue-36573-security-denial-label-locale", "pr": "https://github.com/objectstack-ai/objectstack/pull/36581", "session": "session_01ADHkmPTDM2MxHR8cvoMVUX", "premise_still_valid": true, "summary": "denialLabels (plugin-security authz middleware) now negotiates the label locale against i18n.getLocales() with resolveBundleLocale before translateObject, the rule objectql negotiatedMessageLocale / plugin-approvals negotiatedReaderLocale / the metadata route ask; both callers (field-write and master-detail refusals) read through that one function, so the fix is at the root, not at a call site. Mechanism measured: en-US was not equal to the authored sourceLocale en, so the resolver consulted the zh-CN fallback chain and the en pack (no master row) never answered; negotiated to en it IS the authored language and the authored label answers. PM assumption 1 checked: no exported shared helper exists (objectql's and plugin-approvals' wrappers are module-internal, objectql is only a devDependency here), so the per-package thin call to spec's resolveBundleLocale was followed and no package surface widened. PM assumption 2 held: the sentence locale (denialLocaleOf) is unchanged; the built-in catalog already reads en-US as en, only the label was wrong.", "tests": "head 2dc50ab54a. New top-level describe in packages/plugins/plugin-security/src/denial-label-source-locale.test.ts (sourceLocale en, default+fallback zh-CN, en pack without the master row; real ObjectQL + SqlDriver): en / en-US / fr-FR name Contract, zh-CN names 合同, each asserting code PERMISSION_DENIED + status 403. vitest run of the 3 related files: Test Files 3 passed (3), Tests 60 passed (60). pnpm --filter @objectstack/plugin-security typecheck && test under the lock: VERDICT command-exit 0, typecheck OK incl. check:test-typecheck, Test Files 287 passed (287), Tests 7242 passed | 45 skipped. Ablation via scripts/ablation-replace.mjs (anchor 'locale: negotiated,' x1->x0, replacement x0->x1, blob aaf76ff0 -> f516a0b7; test imports ./security-plugin.js from src so no dist leg): Tests 1 failed | 6 passed, the failure exactly en-US: Expected '...edit access to the Contract...', Received '...edit access to the 合同...'; restored blob == HEAD aaf76ff0, git diff HEAD empty.", "gates": "local subset at 2dc50ab54a: dispatch-gates --commands derived 71 families; all run, each exit captured by redirect-then-$?: 69 exit 0; pnpm check:i18n first exit 3 (PREREQUISITE: CLI not built) then, after its named turbo build closure under the lock (VERDICT command-exit 0), exit 0 'check-i18n-bundles: OK'; pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs a full pnpm build of ~59 packages) = NOT MEASURED, CI reads it (Lint & Repo Gates success). --ran /mnt/project-files/objectstack-seat2/36573-gates-ran.txt (exit-annotated, re-read byte-identical): exit 0, '71 derived famil(ies) accounted for — 70 run, 1 NOT-MEASURED'. overlap-check before both pushes: VERDICT clean exit 0 (shares the middleware file with PR #36386, merges cleanly). PR check-runs at 2dc50ab54a: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Check Changeset success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Test Core 9/10 shards success + shard 1/10 in_progress; Lint UI / Type Check UI / Build & E2E UI skipped by path selector.", "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no without a (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft #36581; POST /repos/objectstack-ai/objectstack/issues/36581/assignees os-steve; read-back identical 4960 bytes), post-stamped POST /repos/objectstack-ai/objectstack/issues/36573/comments (this report). git push x2 not counted (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "files_changed": [".changeset/36573-security-denial-label-locale.md (+8)", "packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts (+17 -1)", "packages/plugins/plugin-security/src/denial-label-source-locale.test.ts (+124 -81; the -81/+81 share is the existing setup re-indented to module scope)"], "line_budget": "+149 -82 across 3 files", "deviations": "Dispatch asked for a NEW test file named for the card; AGENTS.md (ruling record 6583487846: a new pin for a component that already has a shared harness file goes into that file as a top-level describe) outranks it, so the pin is a new top-level describe in the existing harness for this exact gate and deployment shape, denial-label-source-locale.test.ts, with the shared engine setup hoisted to module scope; the claim's file surface named a new file instead. The field-write refusal reads through the same negotiated function but has no separate en-US pin." }objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX
Claim amendment (file surface) · area s2-E · 2026-11-23T01:01Z
The claim 7088274743 named a new test file. The dev put the pin into the existing harness
packages/plugins/plugin-security/src/denial-label-source-locale.test.tsas a new top-level describe, as AGENTS.md's shared-harness rule (ruling record 6583487846) requires where a harness for the same gate and deployment shape exists; that rule outranks the dispatch. The file surface is that file instead of a new one (PR #36581, report 7088803427). Nothing else changes.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX
Closed out — card #36573 · area s2-E · 2026-11-23T01:32Z
Delivered by PR #36581 (MERGED): the denial label resolver now negotiates the request tag against the offered bundles, so
en-USnames the masterContractlikeen. Nothing remains;pm:dispatchedremoved.fix(plugin-security): a refusal negotiates the label locale, so en-US…