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
os validate / os verify name Enterprise-only vocabulary (hierarchy scopes) on Community instead of letting it fail closed silently #34726
社区版里,如果应用用了只有企业版才生效的写法,比如按组织架构控制可见范围的 unit、unit_and_below、own_and_reports,现在会静默失效:检查照样通过,运行时按「只看自己的记录」处理,没有任何提示。AI 按规范写出这样的元数据后,用户不会知道它在社区版上不起作用。这张卡要让 os validate / os verify 在这种情况下直接点名:「这需要 ObjectOS 企业版」。
Filing gate ③: a task the maintainer directed. Filed by the repo:www.objectos.ai seat, session session_01FeA1nwBz1ohH65dvffUGKr. Priority: P2.
Source
The maintainer, 2026-11-17, reviewing the edition split for the www pricing page (www.objectos.ai#473), chose this follow-up: 「os verify 点名企业版能力」. The review found that metadata which is legal in the spec but enforced only by an Enterprise resolver passes every check on Community and then does nothing.
Problem
hierarchy-security is an Enterprise capability: packages/spec/src/kernel/platform-capabilities.ts, lines 231–235.
With no resolver present, the sharing service "fails CLOSED to owner-only": packages/spec/src/contracts/sharing-service.ts, lines 774–779.
docs.objectos.ai configure/permissions/hierarchy-visibility.mdx line 149 says that on Community "the scopes behave as own".
Result: an agent that follows the spec writes readScope: 'unit_and_below'. os validate and os verify pass, and on Community every user silently sees only their own records. Nobody is told why.
Change
In os validate (author-time) and the os verify report, flag every use of a capability whose enforcer is Enterprise-only when the app runs without it.
Name the capability and the edition, for example: "unit_and_below needs ObjectOS Enterprise (hierarchy security); on Community it behaves as owner-only."
Severity is open. Recommendation: a warning by default and an error under --strict. If the maintainer prefers a hard refusal, use the "loud refusal" that the planned data-markings design already specifies.
Drive it from one table. Use the capability registry's edition tags, not a hard-coded list, so that later Enterprise vocabulary (data markings, purpose limits) is covered automatically.
Do not change runtime behaviour. Fail-closed stays.
Acceptance
A fixture app on Community with unit_and_below gets the named finding in both os validate and os verify --json. The same app with the capability present gets no finding.
Self-test fixtures cover each Enterprise-only vocabulary item in the registry.
The skills and docs that describe hierarchy scopes say which edition enforces them.
Regraded p2 → p1 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).
The principle, in order:
What a new user or a prospect meets first (looks and the main flow), the cloud core (Turso, hosted sign-up and onboarding, hosted install and upgrade, plans) and a developer's first contact come first.
Data loss or a permission breach in normal use stays first.
Details and rare configurations are improved over time.
Internal items are frozen.
Why this card: developer first contact: os validate / os verify name Enterprise-only vocabulary on Community.
Claim: PM loop round 1 (area o1-D, repo:objectstack#1; seat 1 moved this p1 card from o1-A's list to this area) · 2026-11-18T07:15Z
Session: session_01JQwxbaX2qDxUq9sF93EqqL
Account: os-warren
Branch: claude/issue-34726-enterprise-capability-finding
Worktree: objectstack-issue-34726
Domain: domain:server
Seat: repo:objectstack#1
File surface: packages/lint/src/** (a security-posture finding driven by the capability registry's edition tags), packages/verify/src/** and packages/cli/src/** (only where os validate / os verify surface that finding), their tests, the docs and skills text that describes hierarchy scopes (content/docs/**, skills/** only if this is a domain:skills follow-up, else a follow-up card), one changeset. packages/spec is read, not changed. Stop on breach and report
Container & model: M, mode:subagent, model: TIER_DEFAULT (no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack: os validate / os verify | defineStack's validateHierarchyScopeCapability (packages/spec/src/data/../stack.zod.ts ~6431) and the save/publish gate (#26188) already refuse a hierarchy scope unless requires names hierarchy-security; serve stays quiet when that token has no provider (packages/cli/src/commands/serve.ts ~5472-5490) | developers on the open edition, first contact
Thread-read: 6969719517
Premise: corrected below. The live tree on main shows that the card's literal case (a hierarchy scope written with nothing declared) is already an authoring-time error in defineStack and at the metadata save/publish door. So it does not pass silently. The silent case that remains is a stack that declares requires: ['hierarchy-security'], which defineStack forces, and runs on the open edition with no provider in plugins[]. In that case os serve skips the token without a word, and the scopes fail closed to owner-only. The dispatch measures this first, then builds the named finding for it (and for every other enterprise / cloud edition token in the capability registry), driven by the registry's edition tags. If the reading shows a different silent path, or none, the dev reports a fork and does not build.
Pre-claim lane: packages/lint, packages/verify, packages/cli — whole-repo lane (domain:server)
Pre-claim deps: none
Prior rulings read: the maintainer's directive quoted on the card 「os verify 点名企业版能力」; triage first touch 6943307381 (name the edition without upsell wording) and regrade 6969719517; severity stays advisory (a warning), and no --strict error is added, since a new gate needs the maintainer's naming
Serial constraints cleared: open PRs touching packages/lint/src, packages/verify/src or packages/cli/src: #34978 and #34935 (validate-expressions), #34791 (seed lint rule removal, authoring-rules.ts and index.ts) and #34717 (cli user set-password). None touches validate-security-posture.ts or the verify harness. #34791 lands first and shares packages/lint/src/authoring-rules.ts and index.ts: the dev rebases over it if it has merged by push time, else re-runs the overlap check
Premise corrected (2026-11-18T07:28Z, measured by area o1-D at aef42cba, readings only)
The card's literal case is already refused: defineStack and the save/publish gate reject a hierarchy scope unless requires names hierarchy-security, and with hierarchy-security declared but no provider installed, os validate already warns and names the edition (though not the owner-only consequence). What is still silent:
os verify never runs the capability preflight, so it stays green for all 7 enterprise and cloud capability tokens, including the 6 cloud tokens os validate refuses with exit 1.
os validate says nothing when @objectstack/security-enterprise resolves from node_modules but is not in plugins[].
os serve falls back to owner-only with no log line.
Corrected scope: extend the existing registry-driven preflight (packages/cli/src/utils/capability-preflight.ts). Surface it in os verify (stage 1 and a --json field), add the wired-in-plugins[] check, name the owner-only consequence in the warning, and say it at os serve start where the CLI can. Verify stays advisory for this card: no new failing exit code. Whether os verify should match os validate's exit 1 on the cloud tokens is a separate question, left out of this card.
{
"issue": 34726,
"status": "done",
"branch": "claude/issue-34726-enterprise-capability-finding",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35168",
"session": "session_01JQwxbaX2qDxUq9sF93EqqL",
"premise_still_valid": false,
"summary": "I built Route A on top of the corrected premise (the seat's comment 6972083658): the card's literal case was already refused, and os validate already named an uninstalled hierarchy-security. The work extends the registry-driven preflight in packages/cli/src/utils/capability-preflight.ts. (1) os verify runs the capability-provider check in stage 1 and reports each finding as an advisory: a text line, and capabilities [{token, message, validate: error|warning}] in --json. The exit code is unchanged for every token. (2) A new preflightProviderWiring check in os validate and os build, and in os verify through (1): an enterprise-edition token whose package resolves but which no plugins[] entry provides gets a warning. A plugins[] entry provides it when it is an instance of a class the package exports, matched with the providesCapability identity match, or a string entry naming the package. A package that will not load is reported as unloadable. (3) The enterprise message names the consequence ('Only the enterprise edition enforces it: without a wired provider, as on the open edition, the hierarchy scopes ... behave as owner-only'), and the remedy is 'Install PKG and add its plugin to plugins[], or remove the token', in place of 'pnpm add'. (4) os serve prints that sentence once at start-up for a declared token that has no resolver row and no tier block (hierarchy-security plus the four packageless cloud tiers) when nothing in plugins[] provides it. The boot is unchanged and so is runtime fail-closed. Docs: five permission pages now say which edition enforces the hierarchy scopes, and deployment/cli.mdx documents verify's capabilities stage and field. One patch changeset for @objectstack/cli. No packages/lint, packages/spec or skills/** edits. I merged origin/main a6cf988, which includes the merged #34791, before opening the PR.",
"tests": "Final head 528e8c1: `pnpm --filter @objectstack/cli exec vitest run --project unit --maxWorkers=2` gives Test Files 428 passed (428), Tests 6122 passed (6122). `... --project integration test/capability-edition-advisory.test.ts` gives Test Files 1 passed (1), Tests 2 passed (2), 40.83 s. Both ran under the lock in one batch that recorded INTEG=0 UNIT=0. `pnpm --filter @objectstack/cli typecheck` exits 0 (VERDICT command-exit 0, after a rebuild of the @objectstack/cli... closure). The first full unit run at 40f0658 found 2 real reds (normalized-call-sites ledger: verify.ts config.requires; validate-build-gate-parity: preflightProviderWiring unclassified). 33fdceb fixed them by adding a top-level row and by wiring the check into compile.ts as a shared gate. New pins: capability-preflight.test.ts has a battery derived from the registry, one pair per non-open token (7 tokens with a floor), plus 8 wiring cases and the consequence-row pin. capability-edition-advisory.test.ts spawns the source CLI and checks that the open-edition stack is named in validate --json warnings and verify --json capabilities with the same sentence and exit 0, while the wired control gets none. Ablation A (wiring verdict forced to 'wired', via scripts/ablation-replace.mjs): anchor 1->0, blob e346e1a9->94041a75, capability-preflight.test.ts red with Tests 4 failed | 43 passed (47). Restored blob e346e1a9 == HEAD. Ablation B (capabilities dropped from verify --json): anchor 1->0, blob 0250b1f3->77f996e0, capability-edition-advisory.test.ts red with Tests 2 failed (2), 'expected undefined to deeply equal'. Restored blob == HEAD and git diff HEAD is empty. The rest of the integration project is declared to CI. Manual source-CLI readings: the open stack shows the finding in validate/verify, the unwired stack shows the unwired warning, the wired stack shows none, and os serve --dev on governance+hierarchy-security prints both start-up lines and boots (discovery 200), while the wired stack prints none.",
"gates": "Local: `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands` derived 106 families at 528e8c1. I ran all 106, each exit code captured before any pipe, and all 106 exited 0. `--ran` with ':: exit N' tails returned '✓ 106 derived famil(ies) accounted for — 106 run, 0 NOT-MEASURED' (exit 0). An earlier run at 33fdceb had 3 families exit 3 PREREQUISITE NOT MET (check:skill-examples, check:dual-build-cjs-loads, check:i18n-coverage). At 528e8c1 all three measured green: 345 prose examples; 124 entries / 72 packages; 14 configs, none new. Overlap-check at 33fdceb against origin/main a6cf988 and #34717: VERDICT clean exit 0. CI on PR #35168 at head 528e8c1 when this report was written: every gate job is in_progress (Lint · ESLint, Lint · repo & tooling gates, Type Check · workspace / source / consumer / debt ledger, Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards, Spec property liveness, Check Documentation Links), and the opt-in/borrowed jobs were skipped. No conclusions yet. Test Core, Build Core and the dogfood shards were not yet listed.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay writes as objectstack-fleet[bot]: (1) pr_create through scripts/pm/fleet-write/dispatch.mjs (POST /repos/objectstack-ai/objectstack/pulls draft:true, POST /repos/objectstack-ai/objectstack/issues/35168/assignees [os-warren]); relay run 44277915231 succeeded, and the read-back reported 11137 bytes sent and 11137 stored, identical. (2) os-dev-report comment on #34726 via scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/34726/comments). Plus git pushes of the branch, which are not REST. The first push of the empty branch happened before the PM's reading-only pause.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat (PM said it will file) · validate/verify exit-code parity for the 6 cloud tokens: os validate exits 1, and os verify now reports the finding with validate:'error' but exits 0 by this card's ruling · noted in Acceptance notes, not filed",
"carrier: none · wiring heuristic: an instance of ANY class @objectstack/security-enterprise exports counts as wired (for example AiSeatPlugin alone silences the hierarchy-security warning). The registry has no per-token plugin identity, and a spec field would be needed to tighten this · Acceptance notes only",
"carrier: cloud · the sharing layer's owner-only fallback (SharingService.resolveOwnerScopeIds, `if (!resolver) return [me]`) still logs nothing at runtime. The CLI now speaks at os serve start-up, but a host that boots without the CLI (cloud objectos-runtime) gets no line · Acceptance notes only",
"carrier: follow-up card (seat) · skills/** text on hierarchy scopes (which edition enforces them, plus verify's capabilities field) was not edited, per the order · Acceptance notes"
]
}
Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.
Why this card: a vocabulary detail in os validate on Community; not a queue jump. Any claim on the card is unchanged.
{
"issue": 34726,
"status": "done",
"branch": "claude/issue-34726-enterprise-capability-finding",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35168",
"session": "session_01JQwxbaX2qDxUq9sF93EqqL",
"premise_still_valid": false,
"summary": "Fix round 1, M1 only (L1 comment 6974851173). In .changeset/34726-enterprise-capability-advisory.md the declaration line Clause-②: no became Clause-②: yes (widening): os verify --json gains the documented key capabilities, an additive change to a documented CLI JSON contract (precedent: dashboardWindows, schemaSyncIndexes in packages/cli/CHANGELOG.md). Metadata-protocol: none and the patch level are kept. No changeset sentence contradicted the new arm (the exit-status sentence is about exit codes, not the JSON shape), so no prose changed. One-line diff, commit 18ce97f82ac on top of 528e8c162b4. premise_still_valid stays false as carried from round 0 (card's literal case was already refused; route A). The PR body read at 2026-11-18 already carries Clause-② yes (widening); I did not edit it.",
"tests": "No code or test changed this round; no package test owed. Head 18ce97f82ac. The level axis driven offline: node scripts/check-changeset-no-major.mjs --base origin/main --event EVENT (EVENT = the live PR 35168 payload) EXIT=0, 'LEVEL AXIS: this PR declares clause-② yes (widening) and metadata-protocol none, and it introduces no changeset entry graded minor or above ... a non-protocol change at patch'. Without --event the axis reads NOT APPLICABLE (no pull_request payload), as designed. No ablation: a declaration line is not tested behaviour.",
"gates": "Derived by node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands .changeset/34726-enterprise-capability-advisory.md (tree 528e8c162b4); every named command run at head 18ce97f82ac, exit captured before any pipe, all EXIT=0: check-adr-0087-registration --base origin/main ('this PR adds no declared-breaking changeset (1 non-breaking changeset(s) seen)') and --self-test (819 assertions); check-changeset-no-major --base origin/main ('This diff introduces no major bump'); check-closing-keyword-parity and --self-test; check-comment-mask-corpus (22830 files, 0 disagree); check-empty-changeset --base origin/main ('1 declaring changeset(s) added'; 'No changeset from the merge base modified or deleted') and --self-test; ci/snapshot-next --self-test; pm/check-governed-queue-guard --self-test (581 cases); pm/release-rehearsal-clone --self-test; release-pending-publish --self-test; pnpm check:adr-anchors, check:changeset-gate-self-tests, check:closed-ceremony-text, check:driver-memory-census, check:gitlink-declared, check:nul-bytes (25820 files, no control bytes), check:published-files, check:refd-timer-probe, check:watch-hint-literal. check-commit-card-trailers --range origin/BRANCH..HEAD EXIT=0 (no card relation, no model identifier). Overlap: node scripts/pm/overlap-check.mjs --branch=HEAD --repo=objectstack-ai/objectstack --exclude-pr=35168 'VERDICT clean exit 0' (origin/main 9f352e8643 merges cleanly; #34717 shares content/docs/deployment/cli.mdx, merges cleanly). PR check-runs at the new head: in_progress (not awaited, per contract).",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/34726/comments (this os-dev-report, via post-stamped.mjs); plus git push of 18ce97f82ac (not a REST write)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: seat — S1 (wiring heuristic false negative) and S2 (os validate / os verify exit-code parity for cloud tokens) from the L1 review are seat-side and were not touched this round"]
}
Fix round 2 on PR #35168: M1 from contract review 6975671274.
{
"issue": 34726,
"status": "done",
"branch": "claude/issue-34726-enterprise-capability-finding",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35168",
"head": "d04836d59af",
"session": "session_01JQwxbaX2qDxUq9sF93EqqL",
"premise_still_valid": true,
"summary": "M1: one bullet added to .changeset/34726-enterprise-capability-advisory.md naming the --strict effect. Checked against head 18ce97f82ac first: validate.ts L1051-1054 folds preflightProviderWiring findings (unwired, and unloadable = resolves but throws on import) into capProviderWarnings, L1315-1316 pushes them into warnings, L1369 strictFailing counts them, and both faces gate on it (JSON L1440, text L1476). os build (compile.ts) has only --strict-body, which reads lowering.bodylessCallables (L404) and never the warnings list, so os build's exit is unchanged. Clause-2 yes (widening), Metadata-protocol none and the patch level are untouched; nothing else changed and the PR body was not edited.",
"tests": "No code change; no package test owed. Diff vs 18ce97f82ac: 1 file, +1 line (.changeset only).",
"gates": "dispatch-gates --commands for the changeset path at d04836d59af: 21 commands, all exit 0 (check-adr-0087-registration --base origin/main + --self-test, check-changeset-no-major --base origin/main, check-closing-keyword-parity + --self-test, check-comment-mask-corpus, check-empty-changeset --base origin/main + --self-test, snapshot-next --self-test, check-governed-queue-guard --self-test, release-rehearsal-clone --self-test, release-pending-publish --self-test, check:adr-anchors, check:changeset-gate-self-tests, check:closed-ceremony-text, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:published-files, check:refd-timer-probe, check:watch-hint-literal). --ran reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (derived zero, every line carries an exit code). check-changeset-no-major had no pull_request payload locally; its PR-body declaration leg and Check Changeset are CI's. overlap-check vs origin/main 4b1eb0eab7: VERDICT clean exit 0 (#34717 merges cleanly). CI on d04836d59af: in_progress at report time.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2: git push (not REST); this comment via post-stamped.mjs (POST issues/34726/comments)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Close-out · 2026-11-18T11:10Z. Fixed by PR #35168, merged as 910306b632bfeb4a6d12a03d6ab489fd1a3d6128 at head d04836d59af212b7ed07c5f3f50949f15c468212. Reviews: L1 ACCEPT 6976287575 and Contract review PASS 6976271014. Follow-ups filed from the PR's Acceptance notes: #35170 (verify/validate exit-code parity for cloud tokens), #35171 (skills text for hierarchy scopes and verify's capabilities field), #35172 (runtime owner-only fallback logs nothing), #35173 (per-token plugin identity in the capability registry). This stroke removes pm:dispatched and the lease label and clears the assignee; the domain and priority labels stay.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p2 ·
domain:server·pm:queue· 2026-11-17T08:51Z⛔ Not a claim.
unit_and_belowpass every check and then silently act as own-only.os validate/os verifyinpackages/cliandpackages/verify→domain:server. The capability table inpackages/specis read, not changed.objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p2 → p1 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).
The principle, in order:
Why this card: developer first contact: os validate / os verify name Enterprise-only vocabulary on Community.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL
Claim: PM loop round 1 (area o1-D, repo:objectstack#1; seat 1 moved this p1 card from o1-A's list to this area) · 2026-11-18T07:15Z
Session:
session_01JQwxbaX2qDxUq9sF93EqqLAccount:
os-warrenBranch:
claude/issue-34726-enterprise-capability-findingWorktree:
objectstack-issue-34726Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/lint/src/**(a security-posture finding driven by the capability registry's edition tags),packages/verify/src/**andpackages/cli/src/**(only whereos validate/os verifysurface that finding), their tests, the docs and skills text that describes hierarchy scopes (content/docs/**,skills/**only if this is adomain:skillsfollow-up, else a follow-up card), one changeset.packages/specis read, not changed. Stop on breach and reportContainer & model:
M,mode:subagent,model: TIER_DEFAULT(no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack: os validate / os verify | defineStack's validateHierarchyScopeCapability (packages/spec/src/data/../stack.zod.ts ~6431) and the save/publish gate (#26188) already refuse a hierarchy scope unless requires names hierarchy-security; serve stays quiet when that token has no provider (packages/cli/src/commands/serve.ts ~5472-5490) | developers on the open edition, first contactThread-read: 6969719517
Premise: corrected below. The live tree on main shows that the card's literal case (a hierarchy scope written with nothing declared) is already an authoring-time error in
defineStackand at the metadata save/publish door. So it does not pass silently. The silent case that remains is a stack that declaresrequires: ['hierarchy-security'], which defineStack forces, and runs on the open edition with no provider inplugins[]. In that caseos serveskips the token without a word, and the scopes fail closed to owner-only. The dispatch measures this first, then builds the named finding for it (and for every otherenterprise/cloudedition token in the capability registry), driven by the registry's edition tags. If the reading shows a different silent path, or none, the dev reports a fork and does not build.Pre-claim lane:
packages/lint,packages/verify,packages/cli— whole-repo lane (domain:server)Pre-claim deps: none
Prior rulings read: the maintainer's directive quoted on the card 「os verify 点名企业版能力」; triage first touch 6943307381 (name the edition without upsell wording) and regrade 6969719517; severity stays advisory (a warning), and no
--stricterror is added, since a new gate needs the maintainer's namingSerial constraints cleared: open PRs touching
packages/lint/src,packages/verify/srcorpackages/cli/src: #34978 and #34935 (validate-expressions), #34791 (seed lint rule removal, authoring-rules.ts and index.ts) and #34717 (cli user set-password). None touchesvalidate-security-posture.tsor the verify harness. #34791 lands first and sharespackages/lint/src/authoring-rules.tsandindex.ts: the dev rebases over it if it has merged by push time, else re-runs the overlap checkobjectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Premise corrected (2026-11-18T07:28Z, measured by area o1-D at
aef42cba, readings only)The card's literal case is already refused:
defineStackand the save/publish gate reject a hierarchy scope unlessrequiresnameshierarchy-security, and withhierarchy-securitydeclared but no provider installed,os validatealready warns and names the edition (though not the owner-only consequence). What is still silent:os verifynever runs the capability preflight, so it stays green for all 7 enterprise and cloud capability tokens, including the 6 cloud tokensos validaterefuses with exit 1.os validatesays nothing when@objectstack/security-enterpriseresolves fromnode_modulesbut is not inplugins[].os servefalls back to owner-only with no log line.Corrected scope: extend the existing registry-driven preflight (
packages/cli/src/utils/capability-preflight.ts). Surface it inos verify(stage 1 and a--jsonfield), add the wired-in-plugins[]check, name the owner-only consequence in the warning, and say it atos servestart where the CLI can. Verify stays advisory for this card: no new failing exit code. Whetheros verifyshould matchos validate's exit 1 on the cloud tokens is a separate question, left out of this card.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL
os-dev-report
{ "issue": 34726, "status": "done", "branch": "claude/issue-34726-enterprise-capability-finding", "pr": "https://github.com/objectstack-ai/objectstack/pull/35168", "session": "session_01JQwxbaX2qDxUq9sF93EqqL", "premise_still_valid": false, "summary": "I built Route A on top of the corrected premise (the seat's comment 6972083658): the card's literal case was already refused, and os validate already named an uninstalled hierarchy-security. The work extends the registry-driven preflight in packages/cli/src/utils/capability-preflight.ts. (1) os verify runs the capability-provider check in stage 1 and reports each finding as an advisory: a text line, and capabilities [{token, message, validate: error|warning}] in --json. The exit code is unchanged for every token. (2) A new preflightProviderWiring check in os validate and os build, and in os verify through (1): an enterprise-edition token whose package resolves but which no plugins[] entry provides gets a warning. A plugins[] entry provides it when it is an instance of a class the package exports, matched with the providesCapability identity match, or a string entry naming the package. A package that will not load is reported as unloadable. (3) The enterprise message names the consequence ('Only the enterprise edition enforces it: without a wired provider, as on the open edition, the hierarchy scopes ... behave as owner-only'), and the remedy is 'Install PKG and add its plugin to plugins[], or remove the token', in place of 'pnpm add'. (4) os serve prints that sentence once at start-up for a declared token that has no resolver row and no tier block (hierarchy-security plus the four packageless cloud tiers) when nothing in plugins[] provides it. The boot is unchanged and so is runtime fail-closed. Docs: five permission pages now say which edition enforces the hierarchy scopes, and deployment/cli.mdx documents verify's capabilities stage and field. One patch changeset for @objectstack/cli. No packages/lint, packages/spec or skills/** edits. I merged origin/main a6cf988, which includes the merged #34791, before opening the PR.", "tests": "Final head 528e8c1: `pnpm --filter @objectstack/cli exec vitest run --project unit --maxWorkers=2` gives Test Files 428 passed (428), Tests 6122 passed (6122). `... --project integration test/capability-edition-advisory.test.ts` gives Test Files 1 passed (1), Tests 2 passed (2), 40.83 s. Both ran under the lock in one batch that recorded INTEG=0 UNIT=0. `pnpm --filter @objectstack/cli typecheck` exits 0 (VERDICT command-exit 0, after a rebuild of the @objectstack/cli... closure). The first full unit run at 40f0658 found 2 real reds (normalized-call-sites ledger: verify.ts config.requires; validate-build-gate-parity: preflightProviderWiring unclassified). 33fdceb fixed them by adding a top-level row and by wiring the check into compile.ts as a shared gate. New pins: capability-preflight.test.ts has a battery derived from the registry, one pair per non-open token (7 tokens with a floor), plus 8 wiring cases and the consequence-row pin. capability-edition-advisory.test.ts spawns the source CLI and checks that the open-edition stack is named in validate --json warnings and verify --json capabilities with the same sentence and exit 0, while the wired control gets none. Ablation A (wiring verdict forced to 'wired', via scripts/ablation-replace.mjs): anchor 1->0, blob e346e1a9->94041a75, capability-preflight.test.ts red with Tests 4 failed | 43 passed (47). Restored blob e346e1a9 == HEAD. Ablation B (capabilities dropped from verify --json): anchor 1->0, blob 0250b1f3->77f996e0, capability-edition-advisory.test.ts red with Tests 2 failed (2), 'expected undefined to deeply equal'. Restored blob == HEAD and git diff HEAD is empty. The rest of the integration project is declared to CI. Manual source-CLI readings: the open stack shows the finding in validate/verify, the unwired stack shows the unwired warning, the wired stack shows none, and os serve --dev on governance+hierarchy-security prints both start-up lines and boots (discovery 200), while the wired stack prints none.", "gates": "Local: `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands` derived 106 families at 528e8c1. I ran all 106, each exit code captured before any pipe, and all 106 exited 0. `--ran` with ':: exit N' tails returned '✓ 106 derived famil(ies) accounted for — 106 run, 0 NOT-MEASURED' (exit 0). An earlier run at 33fdceb had 3 families exit 3 PREREQUISITE NOT MET (check:skill-examples, check:dual-build-cjs-loads, check:i18n-coverage). At 528e8c1 all three measured green: 345 prose examples; 124 entries / 72 packages; 14 configs, none new. Overlap-check at 33fdceb against origin/main a6cf988 and #34717: VERDICT clean exit 0. CI on PR #35168 at head 528e8c1 when this report was written: every gate job is in_progress (Lint · ESLint, Lint · repo & tooling gates, Type Check · workspace / source / consumer / debt ledger, Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards, Spec property liveness, Check Documentation Links), and the opt-in/borrowed jobs were skipped. No conclusions yet. Test Core, Build Core and the dogfood shards were not yet listed.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay writes as objectstack-fleet[bot]: (1) pr_create through scripts/pm/fleet-write/dispatch.mjs (POST /repos/objectstack-ai/objectstack/pulls draft:true, POST /repos/objectstack-ai/objectstack/issues/35168/assignees [os-warren]); relay run 44277915231 succeeded, and the read-back reported 11137 bytes sent and 11137 stored, identical. (2) os-dev-report comment on #34726 via scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/34726/comments). Plus git pushes of the branch, which are not REST. The first push of the empty branch happened before the PM's reading-only pause.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (PM said it will file) · validate/verify exit-code parity for the 6 cloud tokens: os validate exits 1, and os verify now reports the finding with validate:'error' but exits 0 by this card's ruling · noted in Acceptance notes, not filed", "carrier: none · wiring heuristic: an instance of ANY class @objectstack/security-enterprise exports counts as wired (for example AiSeatPlugin alone silences the hierarchy-security warning). The registry has no per-token plugin identity, and a spec field would be needed to tighten this · Acceptance notes only", "carrier: cloud · the sharing layer's owner-only fallback (SharingService.resolveOwnerScopeIds, `if (!resolver) return [me]`) still logs nothing at runtime. The CLI now speaks at os serve start-up, but a host that boots without the CLI (cloud objectos-runtime) gets no line · Acceptance notes only", "carrier: follow-up card (seat) · skills/** text on hierarchy scopes (which edition enforces them, plus verify's capabilities field) was not edited, per the order · Acceptance notes" ] }objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.
Why this card: a vocabulary detail in os validate on Community; not a queue jump. Any claim on the card is unchanged.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL
os-dev-report
{ "issue": 34726, "status": "done", "branch": "claude/issue-34726-enterprise-capability-finding", "pr": "https://github.com/objectstack-ai/objectstack/pull/35168", "session": "session_01JQwxbaX2qDxUq9sF93EqqL", "premise_still_valid": false, "summary": "Fix round 1, M1 only (L1 comment 6974851173). In .changeset/34726-enterprise-capability-advisory.md the declaration line Clause-②: no became Clause-②: yes (widening): os verify --json gains the documented key capabilities, an additive change to a documented CLI JSON contract (precedent: dashboardWindows, schemaSyncIndexes in packages/cli/CHANGELOG.md). Metadata-protocol: none and the patch level are kept. No changeset sentence contradicted the new arm (the exit-status sentence is about exit codes, not the JSON shape), so no prose changed. One-line diff, commit 18ce97f82ac on top of 528e8c162b4. premise_still_valid stays false as carried from round 0 (card's literal case was already refused; route A). The PR body read at 2026-11-18 already carries Clause-② yes (widening); I did not edit it.", "tests": "No code or test changed this round; no package test owed. Head 18ce97f82ac. The level axis driven offline: node scripts/check-changeset-no-major.mjs --base origin/main --event EVENT (EVENT = the live PR 35168 payload) EXIT=0, 'LEVEL AXIS: this PR declares clause-② yes (widening) and metadata-protocol none, and it introduces no changeset entry graded minor or above ... a non-protocol change at patch'. Without --event the axis reads NOT APPLICABLE (no pull_request payload), as designed. No ablation: a declaration line is not tested behaviour.", "gates": "Derived by node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands .changeset/34726-enterprise-capability-advisory.md (tree 528e8c162b4); every named command run at head 18ce97f82ac, exit captured before any pipe, all EXIT=0: check-adr-0087-registration --base origin/main ('this PR adds no declared-breaking changeset (1 non-breaking changeset(s) seen)') and --self-test (819 assertions); check-changeset-no-major --base origin/main ('This diff introduces no major bump'); check-closing-keyword-parity and --self-test; check-comment-mask-corpus (22830 files, 0 disagree); check-empty-changeset --base origin/main ('1 declaring changeset(s) added'; 'No changeset from the merge base modified or deleted') and --self-test; ci/snapshot-next --self-test; pm/check-governed-queue-guard --self-test (581 cases); pm/release-rehearsal-clone --self-test; release-pending-publish --self-test; pnpm check:adr-anchors, check:changeset-gate-self-tests, check:closed-ceremony-text, check:driver-memory-census, check:gitlink-declared, check:nul-bytes (25820 files, no control bytes), check:published-files, check:refd-timer-probe, check:watch-hint-literal. check-commit-card-trailers --range origin/BRANCH..HEAD EXIT=0 (no card relation, no model identifier). Overlap: node scripts/pm/overlap-check.mjs --branch=HEAD --repo=objectstack-ai/objectstack --exclude-pr=35168 'VERDICT clean exit 0' (origin/main 9f352e8643 merges cleanly; #34717 shares content/docs/deployment/cli.mdx, merges cleanly). PR check-runs at the new head: in_progress (not awaited, per contract).", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/34726/comments (this os-dev-report, via post-stamped.mjs); plus git push of 18ce97f82ac (not a REST write)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: seat — S1 (wiring heuristic false negative) and S2 (os validate / os verify exit-code parity for cloud tokens) from the L1 review are seat-side and were not touched this round"] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL
os-dev-report
Fix round 2 on PR #35168: M1 from contract review 6975671274.
{ "issue": 34726, "status": "done", "branch": "claude/issue-34726-enterprise-capability-finding", "pr": "https://github.com/objectstack-ai/objectstack/pull/35168", "head": "d04836d59af", "session": "session_01JQwxbaX2qDxUq9sF93EqqL", "premise_still_valid": true, "summary": "M1: one bullet added to .changeset/34726-enterprise-capability-advisory.md naming the --strict effect. Checked against head 18ce97f82ac first: validate.ts L1051-1054 folds preflightProviderWiring findings (unwired, and unloadable = resolves but throws on import) into capProviderWarnings, L1315-1316 pushes them into warnings, L1369 strictFailing counts them, and both faces gate on it (JSON L1440, text L1476). os build (compile.ts) has only --strict-body, which reads lowering.bodylessCallables (L404) and never the warnings list, so os build's exit is unchanged. Clause-2 yes (widening), Metadata-protocol none and the patch level are untouched; nothing else changed and the PR body was not edited.", "tests": "No code change; no package test owed. Diff vs 18ce97f82ac: 1 file, +1 line (.changeset only).", "gates": "dispatch-gates --commands for the changeset path at d04836d59af: 21 commands, all exit 0 (check-adr-0087-registration --base origin/main + --self-test, check-changeset-no-major --base origin/main, check-closing-keyword-parity + --self-test, check-comment-mask-corpus, check-empty-changeset --base origin/main + --self-test, snapshot-next --self-test, check-governed-queue-guard --self-test, release-rehearsal-clone --self-test, release-pending-publish --self-test, check:adr-anchors, check:changeset-gate-self-tests, check:closed-ceremony-text, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:published-files, check:refd-timer-probe, check:watch-hint-literal). --ran reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (derived zero, every line carries an exit code). check-changeset-no-major had no pull_request payload locally; its PR-body declaration leg and Check Changeset are CI's. overlap-check vs origin/main 4b1eb0eab7: VERDICT clean exit 0 (#34717 merges cleanly). CI on d04836d59af: in_progress at report time.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2: git push (not REST); this comment via post-stamped.mjs (POST issues/34726/comments)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL
Close-out · 2026-11-18T11:10Z. Fixed by PR #35168, merged as
910306b632bfeb4a6d12a03d6ab489fd1a3d6128at headd04836d59af212b7ed07c5f3f50949f15c468212. Reviews: L1 ACCEPT 6976287575 and Contract review PASS 6976271014. Follow-ups filed from the PR's Acceptance notes: #35170 (verify/validate exit-code parity for cloud tokens), #35171 (skills text for hierarchy scopes and verify'scapabilitiesfield), #35172 (runtime owner-only fallback logs nothing), #35173 (per-token plugin identity in the capability registry). This stroke removespm:dispatchedand the lease label and clears the assignee; the domain and priority labels stay.