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
Unmanaged install: an AI-built app cannot be a template — its capability items are runtime-uncreatable and the scaffold's default connector plugins are code, so installModes: ['unmanaged'] is refused #35157
area:clouddomain:engineRetired 2026-10-22, alias of domain:server (engine surface); in-flight cards keep it until they landpriority:p1High: required for production / M2
Filing-gate category: ③ maintainer-directed verification. The maintainer asked this seat to verify, now, how a gallery app reaches the marketplace (「你现在就帮我验证如何把这个发到应用市场」), locally on the version staging runs (「你测试和staging用相同的版本,但是还是可以在本地测试」). Goal, verbatim: 「客户可以从应用市场中下载安装试用」. Rig: cloud 0aabf9aa (staging's deploy head), framework pin b1da9f55 (in 18.6.0), pnpm dev:stack --with-ui --prod-like --seed; app: objectstack-ai/gallery apps/asset_lifecycle/source built with @objectstack/cli 18.6.0.
The gallery's app, built by the AI from a scenario card on the standard scaffold, cannot be declared unmanaged, so it cannot be a template a customer installs and owns. objectstack validate / build on 18.6.0 with manifest.installModes: ['unmanaged']:
✗ defineStack unmanaged install-mode validation failed (2 issues):
✗ `capabilities` carries 3 'capability' item(s), and the metadata-type registry declares 'capability' runtime-uncreatable, so an unmanaged install cannot copy them into the environment.
✗ `plugins` is code, which has no metadata form an unmanaged install can copy into the environment.
The capabilities are the app's own gates.demoasset.manage_assets, demoasset.decide_scrap and demoasset.decide_transfer are granted through permission sets' systemPermissions and required by the actions and flows (requiredPermissions). The authoring skills teach this pattern for confirm-gated business actions. So every gallery card whose app gates an action this way hits the same wall: in practice, most business apps.
The plugins are the scaffold's defaults.create-objectstack writes plugins: [new ConnectorRestPlugin(), new ConnectorOpenApiPlugin(), new ConnectorMcpPlugin()] into every project, whether or not it declares a connector. The app declares none.
Control: with the capabilities, their grants and their requiredPermissions stripped, and plugins removed, the same app publishes, installs unmanaged into a fresh customer environment, and copies 64 items and all 559 sample rows. So these two are the only blockers found.
Ask
Capabilities in an unmanaged copy. Make a package-declared capability copyable by the unmanaged install: renamed into the copy's namespace, with every systemPermissions / requiredPermissions reference rewritten as the copy already does for objects. If capability must stay runtime-uncreatable, say why in the PR, and give the reasoning for the alternative the template authors should use instead.
Scaffold plugins. An unmanaged install (and defineStack's unmanaged validation) does not refuse a package for plugins the hosting runtime already provides, or the scaffold stops writing connector plugins into projects that declare no connector. Choose one, and state the choice in the PR.
Tests: an app with a capability-gated action and the scaffold's default plugins validates with installModes: ['unmanaged']; it installs unmanaged; the copied action is still gated by the copied capability for a holder versus a non-holder.
Reader: the domain:engine lane seat, from pm:queue. Triage may split item 2 to domain:cli.
First touch: p2 kept (seat grade). Grading principle of 2026-11-18, items 3 and 5: an AI-built app cannot yet be declared unmanaged, so it cannot be a marketplace template. This is the path to shipping gallery apps as templates, a capability being completed rather than a break in a flow users meet today. It blocks #35132 and #35134.
Context: Warren's marketplace ruling of 2026-11-18T23:58Z puts this card at the head of the trial-template path (#35157 → #35132 → #35134): the scenario apps leave_balances, requisition_to_receipt and asset_lifecycle become installable as marketplace trials through unmanaged install. Written by a standalone card thread the project coordinator opened for this card (no seat).
Claim: standalone card thread 2026-11-19T00:17Z (no PM round; the project coordinator opened this thread for this one card on Warren's p1 order)
Session: session_01JQwxbXuXMUwP5Bbmq6UZRJ
Account: os-warren
Branch: claude/project-thread-nkazjs (platform exception: this thread can push only its assigned branch)
Worktree: /home/user/objectstack (the thread's own clone)
Domain: domain:engine (read as domain:server)
Seat: coordinator#1 (no lane seat: a standalone card thread the coordinator opened; objectstack seat 1 is limited to its ten cards)
File surface: packages/spec/src/kernel/metadata-plugin.zod.ts (the capability registry entry), packages/spec/src/stack.zod.ts + packages/spec/src/kernel/unmanaged-install.ts (tests/docblocks only unless the fork below lands elsewhere), packages/metadata-protocol/src/package-namespace-rename.ts, packages/metadata-protocol/src/package-unmanaged-install.ts, packages/objectql/src/security-catalog-namespace.ts, the metadata save door's capability refusal, packages/create-objectstack/src/templates/blank/**, docs under content/docs/**, changesets
Container & model: L, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate; Clause-② suspect on packages/spec/src/**), effort: high
Clause-②: yes (a capability becomes runtime-creatable under the recommended option: a widened accept set)
Metadata-protocol: added
Responsibility: objectstack: the registry's code-only capability entry and the unmanaged import's refusal (packages/spec, packages/metadata-protocol); the scaffold template (packages/create-objectstack) | none: no platform path copies a capability today | every AI-built app that gates an action on its own capability, i.e. the three scenario apps Warren ruled first (leave_balances, requisition_to_receipt, asset_lifecycle)
Thread-read: 6995518127
Premise: holds — measured on origin/maincdb327f: RUNTIME_UNCREATABLE_TYPES (stack.zod.ts:2814) is derived from DEFAULT_METADATA_TYPE_REGISTRY, whose capability entry is allowRuntimeCreate: false (metadata-plugin.zod.ts:1269); plugins is code in UNMANAGED_INSTALL_KEY_DISPOSITIONS (kernel/unmanaged-install.ts); the blank scaffold writes three connector plugins and declares no connector (create-objectstack templates/blank/objectstack.config.ts)
Serial constraints cleared: none (cloud#4856, double prefix on unmanaged copies, is cloud-side and not taken here)
The fork, put to the maintainer
Item 1 is a security-boundary choice, so it goes to Warren rather than being picked here. What the reading found:
The runtime gate is a pure name match (missingCapabilities, @objectstack/core): a requiredPermissions gate admits a caller whose sets' systemPermissions name the token, declared or not.
What a capability declaration adds: its Setup label, scope: 'org' (condition (c) of the organization-admin boundary, ADR-0090 D12), and the exemption that lets a set granting the app's own token bind to everyone (ADR-0090 D5 revision, describeHighPrivilegeBits). Dropping declarations from a copy loses all three.
The registry entry's reason for code-only is "nothing in code would ever require the name". Environment-authored actions, flows and objects now carry requiredPermissions, and an unmanaged copy is exactly environment metadata that both requires and grants the token.
Recommended (building on it while the ruling is pending): capability becomes runtime-creatable (overlay stays closed, so a packaged declaration cannot be re-scoped); an environment save under a platform capability name or a name a package holds is refused; the unmanaged import copies capabilities and, under targetNamespace, renames <ns>. / <ns>_ capability names and rewrites systemPermissions / requiredPermissions. Alternative: keep code-only and have templates declare no capabilities[] (gating still works; label, org scope and everyone binding are lost).
Item 2: the scaffold stops writing connector plugins into a project that declares no connector (the README says how to add one with its connector). The install contract is unchanged.
Ruled: option A — a capability is runtime-creatable, platform names and package-held names are refused at the save door, and an unmanaged copy copies an app's capabilities, renamed with the copy when it takes a new namespace.
Maintainer, verbatim, in the project thread at 2026-11-19T04:31Z: 「同意」. It answers the seat's business explanation of option A and its risk list, sent just after his 04:26Z question. The thread's decision card (options A / B) is closed on A.
ADR-0126 §9 lists "reopening any code-only type (field, job, api, capability, agent)" as not chartered. The amendment note recording this ruling goes in a separate governed PR.
Item 2 (scaffold plugins): the scaffold stops writing connector plugins; the install contract is unchanged.
Discussed in the same thread and not ruled: keeping a template's own namespace by default (cloud#3648's customer-code prefix) and reserving official prefixes (ADR-0048 addendum A.2/A.4). No card has been filed for it.
Claim: PM loop round 1 (seat 6, card thread #35157 — L/XL, no area; resumes PR #35261) · 2026-11-19T09:31Z
Session: session_01Q4EjjNq58cmHeqckjZkTFE
Account: hotlong
Branch: claude/project-thread-nkazjs (resumed as is: PR #35261's head branch, platform-assigned to the released thread; not renamed, never force-pushed)
Worktree: objectstack-issue-35157
Domain: domain:engine (read as domain:server)
Seat: repo:objectstack#6
Area: card #35157
File surface: PR #35261's 51 files as they stand at fce0fd912c (claim 6995599332's surface); any further edit only to close a review finding, inside that surface.
Container & model: L, mode:subagent, model: CONTRACT_REVIEW_TIER (reason: L2 delta review of a published-schema face, packages/spec/src/** in PR #35261 — contract-review.md 档随面定; the build is done, the seat's L1 runs at the default tier), effort: xhigh
Clause-②: yes
Metadata-protocol: added
Responsibility: objectstack: the registry's code-only capability entry and the unmanaged import's refusal (packages/spec, packages/metadata-protocol); the scaffold template (packages/create-objectstack) | none | every AI-built app that gates an action on its own capability (carried from claim 6995599332)
Thread-read: 7005068842
Premise: holds — Release 7005068842 routed the card here (triage mailbox 7005144427, Request: take); rulings 6999763503 (option A) and 7000639892 (the everyone-anchor bound) stand; contract review 7000870325 PASSed 706dbee6; the head moved to fce0fd912c (one commit, 4 files, S4) and its 05:44Z review claim 7000911817 lapsed with no record.
Resume-from: claude/project-thread-nkazjs@fce0fd91
Serial constraints cleared: #35132 (PR #35430) is downstream (re-split: its install-mode keys moved to #35266, Blocked-by this card); no other open PR meets the 51 files (overlap-check before any push)
Pre-claim lane: packages/spec, metadata-protocol, objectql, plugin-security, create-objectstack, runtime, cli — objectstack only; cloud#4856 (double prefix) stays cloud-side.
Pre-claim deps: none open.
Prior rulings read: card rulings 6999763503, 7000639892; ADR-0090 D5/D12, ADR-0126 §9 (its amendment note is a separate governed PR, not this one); contract records 7000301544, 7000870325.
{
"issue": 35157,
"status": "done",
"branch": "claude/project-thread-nkazjs",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35261",
"session": "session_01Q4EjjNq58cmHeqckjZkTFE",
"premise_still_valid": true,
"summary": "Fix round for contract review 7005578464 on PR #35261, new head c29f645db5 (fast-forward on fce0fd912c, no merge of main, GitHub reported clean). S5: readDeclaredCapabilityContext now reads `_packageId` alone on BOTH lists. Registry: `_packageId` is the row's binding as the server states it (save door strips it via stripDerivedProvenance; withRowBinding restates it from the package_id column). Metadata-service fallback reverted to `_packageId` alone too, N5 back to the accepted deviation: MetadataManager.register stores the body as written and list()/readListUncached serve registry and loader items as stored, so its `packageId`/`package` is the same author-written key (CapabilityDeclarationSchema declares `packageId`; an environment save keeps it) and the service states no package key of its own. Pins added in builtin-capabilities.test.ts (registry path and fallback path, `packageId` and `package`), red under the S5 reading, green with the fix. N7: the three stale comments in package-namespace-rename.ts restated. Docs: capabilities.mdx and install-modes.mdx state that an undeclared token spelled with a renamed object's name follows the object; the anchor paragraph now adds 'whatever package its own packageId names' and is true. PR body: the A/B ask and 'pending' passages now state rulings 6999763503 and 7000639892. Changeset untouched (its _packageId bullets are true again).",
"tests": "All at head c29f645db5. plugin-security full suite (os-verify-lock): Test Files 279 passed (279), Tests 6992 passed | 45 skipped (7037), VERDICT command-exit 0. Touched suites (builtin-capabilities, suggested-audience-bindings, builtin-capabilities.boot): 3 files, 87 passed. metadata-protocol package-namespace-rename.test.ts: 18 passed. Ablation (committed fix first; scripts/ablation-replace.mjs, anchor 'const pkg = c?._packageId;' x1 -> x0, replacement = the S5 reading '_packageId ?? packageId ?? package' x0 -> x1, blob 18a0c1bc -> 68552ad7): builtin-capabilities.test.ts 'Tests 2 failed | 10 passed (12)', the two new pins red; restore: blob after restore == HEAD 18a0c1bc, git diff HEAD empty (0 bytes). No dist in the path (same-package relative import resolves src).",
"gates": "Local subset, each exit captured before any pipe, all 0: check:nul-bytes, check:doc-authoring, check:doc-anchors, check:docs-spec-enumerations, check:docs-transcript-drift, check:issue-citations (+ node scripts/check-issue-citations.mjs), check:durability-log-level, check:cross-package-test-inputs, check:test-source-alias, lint check:doc-security-posture, lint check:doc-formula-expressions, docs-audit/check-affected-docs, check-docs-section-name, check:closed-ceremony-text, check:role-word. typecheck plugin-security (incl. check:test-typecheck) and metadata-protocol: exit 0. dispatch-gates --commands for this round's 5 files derived 87; --ran reconciliation: 16 run, 71 UNRUN (exit 1) = declared narrowing, CI's. PR check-runs on c29f645db5 at report time: 74 total, success 30, skipped 12, in_progress 32, none failed (in_progress is the honest value). overlap-check (exit 1): main and 4 PRs merge cleanly; #35129 conflicts in packages/create-objectstack/src/templates/blank/package.json, a file this PR already carried (not touched this round).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay repository_dispatch carrying issue_patch PATCH /repos/objectstack-ai/objectstack/issues/35261 (PR body, read-back identical, 10411 bytes); post-stamped POST /repos/objectstack-ai/objectstack/issues/35157/comments (this report). git push is not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: record 7005578464 (seat) · noted, not filed — refusing a capability body whose `packageId` disagrees with its row binding at the save door (as permissionSetOwnerBindingRefusal does for permission sets) would close the key at the source; the record names it wider than this card. The spec describe on CapabilityDeclarationSchema.packageId still calls it the 'author-declared fallback provenance'; the anchor now never reads it.",
"carrier: seat · noted — N4 follow-up card, N8, N9 and the ADR-0126 amendment PR stay as record 7005578464 left them; none taken here."
],
"deviations": "(1) overlap-check ran right after the first push, not before it: the WIP was pushed first under AGENTS.md's push-before-minutes-long-steps rule; the push carried the whole round (one commit) and the check found no conflict this round introduced. (2) PR body: beyond the A/B and 'pending' passages, added one Tests bullet and one Verification details block for this round, because os-dev.md requires the ablation runs cited in the PR body. (3) Commit trailer is the AGENTS.md model-free pair; the harness reminder's model-named Co-Authored-By was not used."
}
MERGED · 2026-11-19T12:21Z · PR #35261 (Part of #35157) merged as 6ffa816e55: items 1 (capability runtime-creatable, save-door bound, unmanaged copy renames capabilities — rulings 6999763503 and 7000639892) and 2 (the blank scaffold lists no connector plugins) are delivered.
Remaining: only the ADR-0126 amendment that records ruling 6999763503 (a governed docs/adr/** PR, domain:skills), filed as #35503. State: pm:dispatched → pm:blocked, assignee cleared; this card closes when #35503 lands. Downstream #35266 (Blocked-by this card) needed only the code half, which is on main now: its unlock reads this merge, not the ADR note.
2026-11-20T01:18Z · Closed as completed. Items 1 and 2 landed in PR #35261 (6ffa816e55, 11-19 12:21Z): an AI-built app can be a template. The only open item, the ADR-0126 amendment #35503, is waived by the maintainer's 「给内部设计文档补一条注释的卡,也都关」 and closed in the same pass.
area:clouddomain:engineRetired 2026-10-22, alias of domain:server (engine surface); in-flight cards keep it until they landpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: p2 kept (seat grade). Grading principle of 2026-11-18, items 3 and 5: an AI-built app cannot yet be declared unmanaged, so it cannot be a marketplace template. This is the path to shipping gallery apps as templates, a capability being completed rather than a break in a flow users meet today. It blocks #35132 and #35134.
objectstack-fleet commentedon Nov 19, 2026
coordinator#1 · os-warren · session_01JQwxbXuXMUwP5Bbmq6UZRJ
2026-11-19T00:13Z — Grade: p2 → p1, the maintainer's own manual grade (final; triage and seats do not change it).
Ruling-ref: Warren, project thread, 2026-11-19T00:11Z 「35157 提到 p1」
Context: Warren's marketplace ruling of 2026-11-18T23:58Z puts this card at the head of the trial-template path (#35157 → #35132 → #35134): the scenario apps
leave_balances,requisition_to_receiptandasset_lifecyclebecome installable as marketplace trials through unmanaged install. Written by a standalone card thread the project coordinator opened for this card (no seat).objectstack-fleet commentedon Nov 19, 2026
coordinator#1 · os-warren · session_01JQwxbXuXMUwP5Bbmq6UZRJ
Claim: standalone card thread 2026-11-19T00:17Z (no PM round; the project coordinator opened this thread for this one card on Warren's p1 order)
Session:
session_01JQwxbXuXMUwP5Bbmq6UZRJAccount:
os-warrenBranch:
claude/project-thread-nkazjs(platform exception: this thread can push only its assigned branch)Worktree:
/home/user/objectstack(the thread's own clone)Domain:
domain:engine(read asdomain:server)Seat: coordinator#1 (no lane seat: a standalone card thread the coordinator opened; objectstack seat 1 is limited to its ten cards)
File surface:
packages/spec/src/kernel/metadata-plugin.zod.ts(thecapabilityregistry entry),packages/spec/src/stack.zod.ts+packages/spec/src/kernel/unmanaged-install.ts(tests/docblocks only unless the fork below lands elsewhere),packages/metadata-protocol/src/package-namespace-rename.ts,packages/metadata-protocol/src/package-unmanaged-install.ts,packages/objectql/src/security-catalog-namespace.ts, the metadata save door's capability refusal,packages/create-objectstack/src/templates/blank/**, docs undercontent/docs/**, changesetsContainer & model:
L,mode:thread,model: default tier (dispatch-gates --tier: no path-derived mandate; Clause-② suspect on packages/spec/src/**),effort: highClause-②: yes (a
capabilitybecomes runtime-creatable under the recommended option: a widened accept set)Metadata-protocol: added
Responsibility:
objectstack: the registry's code-only capability entry and the unmanaged import's refusal (packages/spec, packages/metadata-protocol); the scaffold template (packages/create-objectstack) | none: no platform path copies a capability today | every AI-built app that gates an action on its own capability, i.e. the three scenario apps Warren ruled first (leave_balances, requisition_to_receipt, asset_lifecycle)Thread-read: 6995518127
Premise: holds — measured on
origin/maincdb327f:RUNTIME_UNCREATABLE_TYPES(stack.zod.ts:2814) is derived fromDEFAULT_METADATA_TYPE_REGISTRY, whosecapabilityentry isallowRuntimeCreate: false(metadata-plugin.zod.ts:1269);pluginsiscodeinUNMANAGED_INSTALL_KEY_DISPOSITIONS(kernel/unmanaged-install.ts); the blank scaffold writes three connector plugins and declares no connector (create-objectstack templates/blank/objectstack.config.ts)Serial constraints cleared: none (cloud#4856, double prefix on unmanaged copies, is cloud-side and not taken here)
The fork, put to the maintainer
Item 1 is a security-boundary choice, so it goes to Warren rather than being picked here. What the reading found:
missingCapabilities,@objectstack/core): arequiredPermissionsgate admits a caller whose sets'systemPermissionsname the token, declared or not.capabilitydeclaration adds: its Setup label,scope: 'org'(condition (c) of the organization-admin boundary, ADR-0090 D12), and the exemption that lets a set granting the app's own token bind toeveryone(ADR-0090 D5 revision,describeHighPrivilegeBits). Dropping declarations from a copy loses all three.requiredPermissions, and an unmanaged copy is exactly environment metadata that both requires and grants the token.Recommended (building on it while the ruling is pending):
capabilitybecomes runtime-creatable (overlay stays closed, so a packaged declaration cannot be re-scoped); an environment save under a platform capability name or a name a package holds is refused; the unmanaged import copies capabilities and, undertargetNamespace, renames<ns>./<ns>_capability names and rewritessystemPermissions/requiredPermissions. Alternative: keep code-only and have templates declare nocapabilities[](gating still works; label, org scope andeveryonebinding are lost).Item 2: the scaffold stops writing connector plugins into a project that declares no connector (the README says how to add one with its connector). The install contract is unchanged.
objectstack-fleet commentedon Nov 19, 2026
coordinator#1 · os-warren · session_01JQwxbXuXMUwP5Bbmq6UZRJ
Ruled: option A — a capability is runtime-creatable, platform names and package-held names are refused at the save door, and an unmanaged copy copies an app's capabilities, renamed with the copy when it takes a new namespace.
Maintainer, verbatim, in the project thread at 2026-11-19T04:31Z: 「同意」. It answers the seat's business explanation of option A and its risk list, sent just after his 04:26Z question. The thread's decision card (options A / B) is closed on A.
Ruling-ref: this comment.
What this carries:
everyoneanchor. Only a declaration with package provenance is (ADR-0090 D5).Discussed in the same thread and not ruled: keeping a template's own namespace by default (cloud#3648's customer-code prefix) and reserving official prefixes (ADR-0048 addendum A.2/A.4). No card has been filed for it.
Stamped 2026-11-19T04:32Z.
3 remaining items
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE
Claim: PM loop round 1 (seat 6, card thread
#35157— L/XL, no area; resumes PR #35261) · 2026-11-19T09:31ZSession:
session_01Q4EjjNq58cmHeqckjZkTFEAccount:
hotlongBranch:
claude/project-thread-nkazjs(resumed as is: PR #35261's head branch, platform-assigned to the released thread; not renamed, never force-pushed)Worktree:
objectstack-issue-35157Domain:
domain:engine(read asdomain:server)Seat:
repo:objectstack#6Area: card
#35157File surface: PR #35261's 51 files as they stand at
fce0fd912c(claim 6995599332's surface); any further edit only to close a review finding, inside that surface.Container & model:
L,mode:subagent,model: CONTRACT_REVIEW_TIER (reason: L2 delta review of a published-schema face, packages/spec/src/** in PR #35261 — contract-review.md 档随面定; the build is done, the seat's L1 runs at the default tier),effort: xhighClause-②: yes
Metadata-protocol: added
Responsibility:
objectstack: the registry's code-only capability entry and the unmanaged import's refusal (packages/spec, packages/metadata-protocol); the scaffold template (packages/create-objectstack) | none | every AI-built app that gates an action on its own capability(carried from claim 6995599332)Thread-read: 7005068842
Premise: holds — Release 7005068842 routed the card here (triage mailbox 7005144427,
Request: take); rulings 6999763503 (option A) and 7000639892 (theeveryone-anchor bound) stand; contract review 7000870325 PASSed706dbee6; the head moved tofce0fd912c(one commit, 4 files, S4) and its 05:44Z review claim 7000911817 lapsed with no record.Resume-from:
claude/project-thread-nkazjs@fce0fd91Serial constraints cleared:
#35132 (PR #35430) is downstream (re-split: its install-mode keys moved to #35266, Blocked-by this card); no other open PR meets the 51 files (overlap-check before any push)Pre-claim lane: packages/spec, metadata-protocol, objectql, plugin-security, create-objectstack, runtime, cli — objectstack only; cloud#4856 (double prefix) stays cloud-side.
Pre-claim deps: none open.
Prior rulings read: card rulings 6999763503, 7000639892; ADR-0090 D5/D12, ADR-0126 §9 (its amendment note is a separate governed PR, not this one); contract records 7000301544, 7000870325.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE
os-dev-report
{ "issue": 35157, "status": "done", "branch": "claude/project-thread-nkazjs", "pr": "https://github.com/objectstack-ai/objectstack/pull/35261", "session": "session_01Q4EjjNq58cmHeqckjZkTFE", "premise_still_valid": true, "summary": "Fix round for contract review 7005578464 on PR #35261, new head c29f645db5 (fast-forward on fce0fd912c, no merge of main, GitHub reported clean). S5: readDeclaredCapabilityContext now reads `_packageId` alone on BOTH lists. Registry: `_packageId` is the row's binding as the server states it (save door strips it via stripDerivedProvenance; withRowBinding restates it from the package_id column). Metadata-service fallback reverted to `_packageId` alone too, N5 back to the accepted deviation: MetadataManager.register stores the body as written and list()/readListUncached serve registry and loader items as stored, so its `packageId`/`package` is the same author-written key (CapabilityDeclarationSchema declares `packageId`; an environment save keeps it) and the service states no package key of its own. Pins added in builtin-capabilities.test.ts (registry path and fallback path, `packageId` and `package`), red under the S5 reading, green with the fix. N7: the three stale comments in package-namespace-rename.ts restated. Docs: capabilities.mdx and install-modes.mdx state that an undeclared token spelled with a renamed object's name follows the object; the anchor paragraph now adds 'whatever package its own packageId names' and is true. PR body: the A/B ask and 'pending' passages now state rulings 6999763503 and 7000639892. Changeset untouched (its _packageId bullets are true again).", "tests": "All at head c29f645db5. plugin-security full suite (os-verify-lock): Test Files 279 passed (279), Tests 6992 passed | 45 skipped (7037), VERDICT command-exit 0. Touched suites (builtin-capabilities, suggested-audience-bindings, builtin-capabilities.boot): 3 files, 87 passed. metadata-protocol package-namespace-rename.test.ts: 18 passed. Ablation (committed fix first; scripts/ablation-replace.mjs, anchor 'const pkg = c?._packageId;' x1 -> x0, replacement = the S5 reading '_packageId ?? packageId ?? package' x0 -> x1, blob 18a0c1bc -> 68552ad7): builtin-capabilities.test.ts 'Tests 2 failed | 10 passed (12)', the two new pins red; restore: blob after restore == HEAD 18a0c1bc, git diff HEAD empty (0 bytes). No dist in the path (same-package relative import resolves src).", "gates": "Local subset, each exit captured before any pipe, all 0: check:nul-bytes, check:doc-authoring, check:doc-anchors, check:docs-spec-enumerations, check:docs-transcript-drift, check:issue-citations (+ node scripts/check-issue-citations.mjs), check:durability-log-level, check:cross-package-test-inputs, check:test-source-alias, lint check:doc-security-posture, lint check:doc-formula-expressions, docs-audit/check-affected-docs, check-docs-section-name, check:closed-ceremony-text, check:role-word. typecheck plugin-security (incl. check:test-typecheck) and metadata-protocol: exit 0. dispatch-gates --commands for this round's 5 files derived 87; --ran reconciliation: 16 run, 71 UNRUN (exit 1) = declared narrowing, CI's. PR check-runs on c29f645db5 at report time: 74 total, success 30, skipped 12, in_progress 32, none failed (in_progress is the honest value). overlap-check (exit 1): main and 4 PRs merge cleanly; #35129 conflicts in packages/create-objectstack/src/templates/blank/package.json, a file this PR already carried (not touched this round).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay repository_dispatch carrying issue_patch PATCH /repos/objectstack-ai/objectstack/issues/35261 (PR body, read-back identical, 10411 bytes); post-stamped POST /repos/objectstack-ai/objectstack/issues/35157/comments (this report). git push is not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: record 7005578464 (seat) · noted, not filed — refusing a capability body whose `packageId` disagrees with its row binding at the save door (as permissionSetOwnerBindingRefusal does for permission sets) would close the key at the source; the record names it wider than this card. The spec describe on CapabilityDeclarationSchema.packageId still calls it the 'author-declared fallback provenance'; the anchor now never reads it.", "carrier: seat · noted — N4 follow-up card, N8, N9 and the ADR-0126 amendment PR stay as record 7005578464 left them; none taken here." ], "deviations": "(1) overlap-check ran right after the first push, not before it: the WIP was pushed first under AGENTS.md's push-before-minutes-long-steps rule; the push carried the whole round (one commit) and the check found no conflict this round introduced. (2) PR body: beyond the A/B and 'pending' passages, added one Tests bullet and one Verification details block for this round, because os-dev.md requires the ablation runs cited in the PR body. (3) Commit trailer is the AGENTS.md model-free pair; the harness reminder's model-named Co-Authored-By was not used." }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE
MERGED · 2026-11-19T12:21Z · PR #35261 (
Part of #35157) merged as6ffa816e55: items 1 (capability runtime-creatable, save-door bound, unmanaged copy renames capabilities — rulings 6999763503 and 7000639892) and 2 (the blank scaffold lists no connector plugins) are delivered.Remaining: only the ADR-0126 amendment that records ruling 6999763503 (a governed
docs/adr/**PR,domain:skills), filed as #35503. State:pm:dispatched→pm:blocked, assignee cleared; this card closes when #35503 lands. Downstream #35266 (Blocked-by this card) needed only the code half, which is onmainnow: its unlock reads this merge, not the ADR note.Blocked-by: #35503
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
2026-11-20T01:18Z · Closed as completed. Items 1 and 2 landed in PR #35261 (
6ffa816e55, 11-19 12:21Z): an AI-built app can be a template. The only open item, the ADR-0126 amendment #35503, is waived by the maintainer's 「给内部设计文档补一条注释的卡,也都关」 and closed in the same pass.