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
install-local: a composed app cannot be uninstalled — the app install is refused until its extending module is uninstalled, and the module has no install entry and is read-only #34396
A composed app installed through install-local cannot be uninstalled, by the API or from Setup → Installed Apps.
The app is one release artifact carrying six package bodies (ADR-0130 D4): the type: app package and five type: module packages; one module declares objectExtensions on three of the app package's objects. os package install ./dist/objectstack.json registers all six, but writes one install-local entry, for the app package id (GET /api/v1/marketplace/install-local lists only it).
Uninstall the package that extends objects of "" first (.carbon), then uninstall "" again: a package cannot be uninstalled while another package extends an object it owns (objectExtensions, ADR-0029).
DELETE /api/v1/marketplace/install-local/<app id>.carbon → 404 RESOURCE_NOT_FOUND "No marketplace install for <app id>.carbon." — the module has no install entry of its own.
DELETE /api/v1/packages/<app id>.carbon → 422 WRITABLE_PACKAGE_REQUIRED: the module is read-only ("provided by code or an installed app").
So the prescribed order (module first, then the app) has no door that performs its first step, and the only remedy left is deleting the cached manifest under storageDir on the host and restarting.
Expected: uninstalling the install entry of a composed artifact uninstalls every package body it installed, in reverse dependency order (extending modules before the package they extend) — the same unit the install was. Equivalently, the extension check should not count extensions contributed by packages of the same install.
Related: #34336 (the same composed install loads none of the package bodies' seed datasets or translations), which is how we got here — the natural recovery, uninstall and reinstall, is blocked by this.
Steps
Build a composed artifact where a type: module package extends an object of the type: app package (objectExtensions), e.g. any HotCRM-style suite with a module that adds fields to crm_account.
os package install ./dist/objectstack.json --url <runtime> --token <key>.
Setup → Installed Apps → Uninstall the app (or the three calls above).
Observe the 409 / 404 / 422 above; nothing can be removed.
Triage: first touch → domain:server · p1 · 2026-11-16T12:48Z
⛔ Not a claim.
A self-hosted user (Kubernetes, 18.5.0) cannot uninstall a composed app installed through install-local, either by the API or from Setup → Installed Apps.
The uninstall of the app is refused while its extending module is installed.
The module has no install entry of its own and is read-only, so it cannot be removed first.
An installed app is stuck, with no path out in the product. The report comes from outside the fleet, so p1. Expected: the install entry uninstalls the unit it installed, extending modules first, or the extension check stops counting extensions contributed by the same artifact.
Claim: PM loop · seat-handed p1 · 2026-11-16T13:20Z
Session: session_01FEkQ5pHNFS9mn8hS13iGyL
Account: os-project-manager
Branch: claude/issue-34396-composed-uninstall
Worktree: objectstack-issue-34396
Domain: domain:server
Seat: repo:objectstack#1
File surface: the install-local uninstall door in packages/cloud-connection/src/** (marketplace-install-local-plugin.ts uninstall path and helpers) and the objectExtensions uninstall refusal in packages/objectql/src/registry.ts; new test files named for this card; .changeset/** (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: no (the uninstall door starts removing the unit the install entry installed, in reverse dependency order; no accepted shape or public export widens; the dev confirms. If the fix needs a choice between "uninstall the whole unit" and "do not count same-artifact extensions" that changes visible behaviour beyond the card's Expected line, the dev stops and it goes to the seat)
Metadata-protocol: none
Responsibility: objectstack (install-local uninstall of a composed artifact, ADR-0130 D4): the app's uninstall is refused for an extending module that has no install entry and is read-only, so nothing can be removed | the install entry already names the composed artifact; registry objectExtensions refusal (ADR-0029) | every self-hosted or hosted tenant that installed a composed app via install-local; the natural recovery from #34336 (uninstall and reinstall) is blocked
Thread-read: 6916866588
Premise: holds (reporter's 409/404/422 sequence on 18.5.0; the dev reproduces red-first on main)
Serial constraints cleared: #34336 (this area, in flight on packages/cloud-connection/src/marketplace-install-local-plugin.ts) and p0 #34397 (this area, install-local path): this card's dev is dispatched when an area slot frees and after #34397's fix lands, merges main after #34336 if they overlap; the dev runs git merge-tree against every open PR touching its files before push
Pre-claim lane: domain:server (packages/cloud-connection, packages/objectql registry)
Pre-claim deps: none
Prior rulings read: triage 6916866588 (p1, outside report); card body (Expected: the install entry uninstalls every package body it installed, extending modules first); no further ruling found on the card
{
"issue": 34396,
"status": "done",
"branch": "claude/issue-34396-composed-uninstall",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34418",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"summary": "Reproduced red-first on a real ObjectKernel+ObjectQLPlugin: a composed artifact (app + extending module + plain module) installs as ONE ledger entry, and its DELETE answered the reporter's 409 RESOURCE_CONFLICT naming the module, while the module's own DELETE answers 404 and isWritablePackage (the 422 WRITABLE_PACKAGE_REQUIRED predicate) is false. Fix is door-only in packages/cloud-connection/src/marketplace-install-local-plugin.ts: the entry's stored body yields the unit (reverse of orderHydrationBatch order). The registry's own assertPackageUninstallable is asked of every member, and a new pure planUnitWithdrawal turns refusals whose every cause (extenders, customizationPackageId) is a same-unit member into ordering (extending modules first). A cause outside the unit still refuses with the registry's own 409. Every member is then withdrawn, its copies are withdrawn and restored, and its uninstall cleanups run under its own id. Handler unbind, metadata:reloaded and the package_uninstall row stay once per entry. A single-package entry is byte-for-byte the old path. No objectql file changed. Branched from origin/claude/area-E1-33949-registry, then merged origin/main once #34285 merged (13:47Z, squash 60803879aa); delta vs main is 3 files.",
"tests": "HEAD c965590cfc. New src/marketplace-install-local-composed-uninstall.test.ts (8 tests): GREEN `Test Files 1 passed (1) · Tests 8 passed (8)`. RED leg = plugin restored from the merged main parent cfcba53920 (on-disk proof: hash 9d8a99a29e equals cfcba53920's blob; grep -c planUnitWithdrawal = 0): `Tests 4 failed | 4 passed (8)`, every failure the reporter's `RESOURCE_CONFLICT ... Uninstall the package that extends an object of \"com.probe.suite\" first (com.probe.suite.carbon) ...: expected 409 to be 200`. Restore via `git checkout HEAD --`, `git diff HEAD` empty, hash cf62c5fcf1 equals the HEAD blob. Whole package `pnpm --filter @objectstack/cloud-connection test`: `Test Files 84 passed (84) · Tests 1235 passed (1235)` (includes the existing single-package withdrawal and 409 pins). `pnpm --filter @objectstack/cloud-connection typecheck` exit 0 (tsc --listFiles over tsconfig.test.json counts the new file: 1). All runs under os-verify-lock, VERDICT command-exit 0. No ablation beyond the red/green leg (src-resolved: the plugin file is imported relatively from src, no dist hop).",
"gates": "Local: closure build `pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build` VERDICT command-exit 0. dispatch-gates --commands (repo objectstack-ai/objectstack, tree c965590cfc): 71 derived, 70 run exit 0, 1 exit 3 = `pnpm check:dual-build-cjs-loads` PREREQUISITE NOT MET (39 packages without dist) -> NOT MEASURED locally, CI Lint & Repo Gates owns it. `--ran` verdict: `71 derived, 70 run, 0 NOT-MEASURED, 1 UNRUN` (exit 1, that one family). check-platform-checklist not owed (no export renamed/removed). PR check-runs on c965590cfc: none registered yet at report time (read once right after pr_create; 0 runs) -> CI convergence is the seat's.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft, no labels, no assignees; run 43898571869, read-back 8413/8413 bytes identical) and post-stamped comment on #34396 (POST /repos/objectstack-ai/objectstack/issues/34396/comments); plus git push of the branch (not REST)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — mixed-cause 409 text: a member extended by both a same-unit module and a foreign package gets the registry's sentence, which also names the same-unit module among the packages to uninstall first (decision correct, prescription partly unactionable); in PR Acceptance notes",
"carrier: none · noted, not filed — same-unit dependent-rule guard: runUninstallGuards is asked per member and cannot exclude same-unit dependents, so an active validation rule of one member reading a field another member adds via objectExtensions would refuse the composed uninstall; unmeasured on a real artifact, not the reporter's shape; in PR Acceptance notes"
],
"overlaps": "git merge-tree (HEAD vs PR heads) against the open PRs touching marketplace-install-local-plugin.ts: #34403 claude/issue-34336-composed-bundle-seeds f54ec13b44 — clean (exit 0); #34316 claude/area-A5-33922 efb9823b32 — clean (exit 0). #34397 has no open PR touching these files.",
"deviations": "(1) The empty-branch probe push before editing (os-dev rule 1) was refused by the permission classifier, consistent with the dispatch's 'do not push before #34285 merges'; the first push happened after the main merge. (2) PR opened with no assignees per the dispatch, against os-dev rule 2's claim Account: as assignee — dispatch wording followed, flagged here. (3) Commit trailers are model-free per common.md (Co-Authored-By: Claude), overriding the harness reminder's model-named trailer. (4) PR footer uses the AGENTS.md session-URL form, not the harness's robot-emoji line. (5) Worktree branched from the registry-split branch per dispatch, then origin/main merged in (no rebase)."
}
Landed · 2026-11-16T17:15Z: PR #34418 merged through the merge queue as 2becfd61, and Fixes #34396 closed this card. A composed app's uninstall through install-local is no longer refused when its own package bodies hold each other's object extensions: same-unit refusals now set the removal order instead. pm:dispatched and lease:o1-B are removed and the assignee cleared in this stroke.
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server· p1 · 2026-11-16T12:48Z⛔ Not a claim.
A self-hosted user (Kubernetes, 18.5.0) cannot uninstall a composed app installed through install-local, either by the API or from Setup → Installed Apps.
An installed app is stuck, with no path out in the product. The report comes from outside the fleet, so p1. Expected: the install entry uninstalls the unit it installed, extending modules first, or the extension check stops counting extensions contributed by the same artifact.
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Claim: PM loop · seat-handed p1 · 2026-11-16T13:20Z
Session:
session_01FEkQ5pHNFS9mn8hS13iGyLAccount:
os-project-managerBranch:
claude/issue-34396-composed-uninstallWorktree:
objectstack-issue-34396Domain:
domain:serverSeat:
repo:objectstack#1File surface: the install-local uninstall door in
packages/cloud-connection/src/**(marketplace-install-local-plugin.tsuninstall path and helpers) and the objectExtensions uninstall refusal inpackages/objectql/src/registry.ts; new test files named for this card;.changeset/**(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no (the uninstall door starts removing the unit the install entry installed, in reverse dependency order; no accepted shape or public export widens; the dev confirms. If the fix needs a choice between "uninstall the whole unit" and "do not count same-artifact extensions" that changes visible behaviour beyond the card's Expected line, the dev stops and it goes to the seat)
Metadata-protocol: none
Responsibility:
objectstack (install-local uninstall of a composed artifact, ADR-0130 D4): the app's uninstall is refused for an extending module that has no install entry and is read-only, so nothing can be removed | the install entry already names the composed artifact; registry objectExtensions refusal (ADR-0029) | every self-hosted or hosted tenant that installed a composed app via install-local; the natural recovery from #34336 (uninstall and reinstall) is blockedThread-read: 6916866588
Premise: holds (reporter's 409/404/422 sequence on 18.5.0; the dev reproduces red-first on main)
Serial constraints cleared:
#34336 (this area, in flight on packages/cloud-connection/src/marketplace-install-local-plugin.ts) and p0 #34397 (this area, install-local path): this card's dev is dispatched when an area slot frees and after #34397's fix lands, merges main after #34336 if they overlap; the dev runs git merge-tree against every open PR touching its files before pushPre-claim lane: domain:server (packages/cloud-connection, packages/objectql registry)
Pre-claim deps: none
Prior rulings read: triage 6916866588 (p1, outside report); card body (Expected: the install entry uninstalls every package body it installed, extending modules first); no further ruling found on the card
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 34396, "status": "done", "branch": "claude/issue-34396-composed-uninstall", "pr": "https://github.com/objectstack-ai/objectstack/pull/34418", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "summary": "Reproduced red-first on a real ObjectKernel+ObjectQLPlugin: a composed artifact (app + extending module + plain module) installs as ONE ledger entry, and its DELETE answered the reporter's 409 RESOURCE_CONFLICT naming the module, while the module's own DELETE answers 404 and isWritablePackage (the 422 WRITABLE_PACKAGE_REQUIRED predicate) is false. Fix is door-only in packages/cloud-connection/src/marketplace-install-local-plugin.ts: the entry's stored body yields the unit (reverse of orderHydrationBatch order). The registry's own assertPackageUninstallable is asked of every member, and a new pure planUnitWithdrawal turns refusals whose every cause (extenders, customizationPackageId) is a same-unit member into ordering (extending modules first). A cause outside the unit still refuses with the registry's own 409. Every member is then withdrawn, its copies are withdrawn and restored, and its uninstall cleanups run under its own id. Handler unbind, metadata:reloaded and the package_uninstall row stay once per entry. A single-package entry is byte-for-byte the old path. No objectql file changed. Branched from origin/claude/area-E1-33949-registry, then merged origin/main once #34285 merged (13:47Z, squash 60803879aa); delta vs main is 3 files.", "tests": "HEAD c965590cfc. New src/marketplace-install-local-composed-uninstall.test.ts (8 tests): GREEN `Test Files 1 passed (1) · Tests 8 passed (8)`. RED leg = plugin restored from the merged main parent cfcba53920 (on-disk proof: hash 9d8a99a29e equals cfcba53920's blob; grep -c planUnitWithdrawal = 0): `Tests 4 failed | 4 passed (8)`, every failure the reporter's `RESOURCE_CONFLICT ... Uninstall the package that extends an object of \"com.probe.suite\" first (com.probe.suite.carbon) ...: expected 409 to be 200`. Restore via `git checkout HEAD --`, `git diff HEAD` empty, hash cf62c5fcf1 equals the HEAD blob. Whole package `pnpm --filter @objectstack/cloud-connection test`: `Test Files 84 passed (84) · Tests 1235 passed (1235)` (includes the existing single-package withdrawal and 409 pins). `pnpm --filter @objectstack/cloud-connection typecheck` exit 0 (tsc --listFiles over tsconfig.test.json counts the new file: 1). All runs under os-verify-lock, VERDICT command-exit 0. No ablation beyond the red/green leg (src-resolved: the plugin file is imported relatively from src, no dist hop).", "gates": "Local: closure build `pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection^...' build` VERDICT command-exit 0. dispatch-gates --commands (repo objectstack-ai/objectstack, tree c965590cfc): 71 derived, 70 run exit 0, 1 exit 3 = `pnpm check:dual-build-cjs-loads` PREREQUISITE NOT MET (39 packages without dist) -> NOT MEASURED locally, CI Lint & Repo Gates owns it. `--ran` verdict: `71 derived, 70 run, 0 NOT-MEASURED, 1 UNRUN` (exit 1, that one family). check-platform-checklist not owed (no export renamed/removed). PR check-runs on c965590cfc: none registered yet at report time (read once right after pr_create; 0 runs) -> CI convergence is the seat's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft, no labels, no assignees; run 43898571869, read-back 8413/8413 bytes identical) and post-stamped comment on #34396 (POST /repos/objectstack-ai/objectstack/issues/34396/comments); plus git push of the branch (not REST)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — mixed-cause 409 text: a member extended by both a same-unit module and a foreign package gets the registry's sentence, which also names the same-unit module among the packages to uninstall first (decision correct, prescription partly unactionable); in PR Acceptance notes", "carrier: none · noted, not filed — same-unit dependent-rule guard: runUninstallGuards is asked per member and cannot exclude same-unit dependents, so an active validation rule of one member reading a field another member adds via objectExtensions would refuse the composed uninstall; unmeasured on a real artifact, not the reporter's shape; in PR Acceptance notes" ], "overlaps": "git merge-tree (HEAD vs PR heads) against the open PRs touching marketplace-install-local-plugin.ts: #34403 claude/issue-34336-composed-bundle-seeds f54ec13b44 — clean (exit 0); #34316 claude/area-A5-33922 efb9823b32 — clean (exit 0). #34397 has no open PR touching these files.", "deviations": "(1) The empty-branch probe push before editing (os-dev rule 1) was refused by the permission classifier, consistent with the dispatch's 'do not push before #34285 merges'; the first push happened after the main merge. (2) PR opened with no assignees per the dispatch, against os-dev rule 2's claim Account: as assignee — dispatch wording followed, flagged here. (3) Commit trailers are model-free per common.md (Co-Authored-By: Claude), overriding the harness reminder's model-named trailer. (4) PR footer uses the AGENTS.md session-URL form, not the harness's robot-emoji line. (5) Worktree branched from the registry-split branch per dispatch, then origin/main merged in (no rebase)." }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Landed · 2026-11-16T17:15Z: PR #34418 merged through the merge queue as
2becfd61, andFixes #34396closed this card. A composed app's uninstall through install-local is no longer refused when its own package bodies hold each other's object extensions: same-unit refusals now set the removal order instead.pm:dispatchedandlease:o1-Bare removed and the assignee cleared in this stroke.