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
runtime: the protocol package-uninstall door (DELETE /api/v1/packages/:id) may leave an uninstalled package's engine action handlers bound until restart; measure, then share the install-local door's cleanup #33624
Follow-up of #33536 / PR #33622 (area E2, area-lease pilot #33059). The seat filed this unleased during the pilot drain, so it is queued for the next dispatcher.
Premise (UNMEASURED: read from code only)
PR #33622 makes the install-local DELETE door unbind an uninstalled package's engine action handlers (unbindAppArtifactHandlers). The protocol door, DELETE /api/v1/packages/:id (deletePackage in packages/metadata-protocol plus runtime packages.ts), appears not to call it, so the handlers would stay bound until restart.
Step 1: measure
Install a package with an action handler, uninstall it through the protocol door, then invoke the action. Record whether the handler still runs. If it does not reproduce, close this card with the measurement.
Step 2 (only if reproduced): proposed fix A
Register unbindAppArtifactHandlers as a runtime.package-handlers uninstall cleanup, so both doors share one path. Cost: the uninstall responses' cleanup lists gain a row, and the pins on those lists move (Clause-② table needed). The alternative B leaves the handlers bound until restart.
The seat rules A vs B once Step 1 is measured.
Owners
packages/metadata-protocol belongs to E1, and packages/runtime (outside action routes) belongs to A5. Whoever claims it coordinates with both.
Claim: server area-lease mode (#33751 §2), area S3 lease A5, dispatched by seat domain:server#5 area thread · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T09:23Z
Session: session_01QsR2jTEivi2wogPpeo3xd5
Account: zhuangjianguo
Branch: claude/area-A5-33624
Worktree: objectstack-issue-33624
Domain: domain:server
Seat: domain:server#5
File surface: packages/runtime/src/domains/packages.ts, packages/runtime/src/app-artifact-handlers.ts, the runtime package-uninstall cleanup registration, packages/metadata-protocol deletePackage only if the measured seam is there (E1 told), their tests, a changeset (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at bd96ec9c), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack runtime: the protocol uninstall door may not unbind engine action handlers | install-local DELETE already unbinds (PR #33622) | anyone uninstalling a package through DELETE /api/v1/packages/:id
Thread-read: none
Premise: holds (read from code only; step 1 measures it)
Serial constraints cleared: PR #33622 (merged, install-local unbind); E1 in-flight metadata-protocol claims (#33563#33564#33486 fold): protocol.ts not edited
Step 1 is measure-first. If it does not reproduce, the PR is the measurement pin only and the card closes with it.
{
"issue": 33624,
"status": "done",
"branch": "claude/area-A5-33624",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33844",
"pr_number": 33844,
"head_sha": "a8b2316a243cbc3be61cd689750661047e958081",
"session": "session_01QsR2jTEivi2wogPpeo3xd5",
"premise_still_valid": false,
"summary": "H1 is falsified, measured on a real kernel (ObjectKernel + SQL driver + ObjectQLPlugin + AppPlugin, every call through HttpDispatcher.dispatch). (1) A package DELETE /api/v1/packages/:id can uninstall is a writable base (POST /packages, then action and body hook saved with ?package=ID). Its handlers sit under the authored owner metadata-service, never app:ID. After DELETE answers 200 the engine lists no holder of the action key, the action answers 404 RESOURCE_NOT_FOUND with nothing run, and the hook no longer fires. A CONTROL authored package still runs. (2) A package the runtime binder bound under app:ID (manifest.register with source marketplace, then bindAppArtifactHandlers with install-local's options, as the install-local install does; a code boot lands the same way) is refused 422 WRITABLE_PACKAGE_REQUIRED before anything moves, because isWritablePackage is false for any id in engine.manifests. So the binder's owners never reach this door, and fix A is not taken. CONTROL through the install-local door: marketplace-install-local-uninstall-handlers.test.ts 6/6 green. Area question (#33546 announcement): two paths each withdraw the authored handlers. One is the awaited uninstall announcement (metadata:reloaded, then ObjectQLPlugin resyncAuthoredHooks/Actions). The other is the protocol's fire-and-forget delete mutation events (state deleted), which run the same resyncs. Ablating either alone stays green; ablating both is red. H2: the shared registry exists and both doors walk it (protocol-package-uninstall.ts:385 runUninstallCleanups; marketplace-install-local-plugin.ts:3718 into :4107). No runtime.package-handlers cleanup exists. The PR is the measurement pin alone (test-only, Fixes #33624). It needs the skip-changeset label from the area: Check Changeset is red only for that.",
"tests": "New pin packages/runtime/src/domains/packages-uninstall-handlers-withdrawn.test.ts. Local, under os-verify-lock on dc4710ef: Test Files 1 passed (1), Tests 2 passed (2). CI on head a8b2316a, Test Core (3/8): '✓ local src/domains/packages-uninstall-handlers-withdrawn.test.ts (2 tests) 1040ms'. CONTROL pnpm --filter @objectstack/cloud-connection exec vitest run src/marketplace-install-local-uninstall-handlers.test.ts: Tests 6 passed (6). pnpm --filter @objectstack/runtime typecheck: VERDICT command-exit 0, check:test-typecheck OK. The full local runtime suite (vitest --project local) was NOT MEASURED locally: five lock attempts got VERDICT queue-timeout (exit 99), because holder pid 25671 (issue-33608 final-tests.sh, cli integration) held the lock for more than 66 min. CI Test Core 1-8/8 is success on a8b2316a. Ablations: one-time, through scripts/ablation-replace.mjs; the objectql legs were rebuilt and proved in dist by ablation-dist-preflight; the tree was restored with git status --porcelain empty and --absent on the rebuilt dist. Leg 1, announcement removed (packages.ts): green. Leg 2, the deleted-state mutation resync removed (objectql plugin.ts, marker present in 2 built files): green. Leg 3, legs 1+2: red, 'no handler is left under the uninstalled package's action: expected [ 'metadata-service' ] to deeply equal []'. Leg 4, read-only refusal removed (packages.ts): red, 'expected [ 200, undefined ] to deeply equal [ 422, 'WRITABLE_PACKAGE_REQUIRED' ]'.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 50 families for the 1-path diff. Run unlocked, each exit captured before any pipe: 48 exit 0. Two did not pass first time and were re-run on fixes: check:slot-lookup was exit 1 (an any-typed manifest service lookup in the new test), fixed in dc4710ef, re-run exit 0. check:query-options-erasure hit the 300 s timeout (exit 124), re-run detached, exit 0. --ran reconciliation: 50 derived, 48 run, 0 NOT-MEASURED, 2 UNRUN. The 2 UNRUN are check:type-check-debt (needs the lock, never granted) and check:dual-build-cjs-loads (left to CI). CI check-runs on a8b2316a: Lint & Repo Gates success; Lint · ESLint success; Lint · scoped · slot lookup & corpus success; Lint · scoped · query-options erasure success; TypeScript Type Check success; Type Check · debt ledger success; Test Core (1/8..8/8) success; Build Core success; Governed Surface Queue Guard success; Dogfood Regression Gate success; Live E2E UI success; Test UI success; PR-body guards success. Check Changeset failure (skip-changeset label absent; the area adds it). PR-body gates run locally before pr_create, all exit 0: check-changeset-no-major --base origin/main, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword. Repo-wide pnpm lint was not run locally; CI Lint · ESLint is success.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, #33844, read back byte-identical 7060/7060); post-stamped os-dev-report comment on #33624 (POST /repos/objectstack-ai/objectstack/issues/33624/comments). git push x4 (not REST).",
"line_budget": "+237 / -0, one test file; no skills/** touched",
"files_changed": ["packages/runtime/src/domains/packages-uninstall-handlers-withdrawn.test.ts"],
"deviations": [
"Conflict between dev-common and os-dev.md on the skip-changeset label. dev-common says the area adds it; os-dev.md says to declare it with pr_create labels. I followed dev-common and sent no labels, so Check Changeset stays red until the area labels the PR.",
"Conflict between dev-common and os-dev.md on the PR body's first line. dev-common mandates the attribution HTML-comment line; os-dev.md bars dev-written HTML comments. I followed dev-common, and the read-back is byte-identical.",
"Conflict between dev-common and os-dev.md on local verification. dev-common asks for local pnpm lint and the tests of direct dependents; os-dev.md leaves the repo scan to CI and owes dependents nothing when the public surface is byte-identical. This diff is test-only, so I ran neither locally. CI Lint · ESLint and Test Core are success.",
"The final head a8b2316a is a merge of origin/main (incoming changes touch runtime, objectql and core). My local pin, control and ablation runs were on dc4710ef and db21c2c2. The re-run on the merged head after a closure rebuild was NOT MEASURED locally (lock queue-timeout x2). CI Test Core ran the pin green on a8b2316a.",
"The first ablation attempt's objectql build failed at DTS after emitting a mutated JS dist. The source was restored by the trap, and the next run rebuilt objectql from the restored source, with ablation-dist-preflight --absent passing. The failed build changed no reading.",
"A runtime-suite attempt spelled with a bare '--' was killed while still queued and never ran. It was replaced by a correctly spelled run, which also never got the lock."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"noted, not filed · carrier: none · Ablation leg 4: were the 422 read-only refusal on DELETE /api/v1/packages/:id ever lifted for a registered manifest, the door answers 200 for a package whose handlers the binder holds under app:ID. That is unreachable on main (ADR-0070), so it goes in Acceptance notes only.",
"noted, not filed · carrier: none · With the announcement ablated, the authored withdrawal relies on the fire-and-forget delete-event resync winning the race before the door answers. The awaited announcement is the deterministic path. It is not a defect on main."
]
}
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5
Claim: server area-lease mode (#33751 §2), area S3 lease A5, dispatched by seat
domain:server#5area thread · executed by anos-devsub-agent (mode:subagent) · posted at 2026-11-15T09:23ZSession:
session_01QsR2jTEivi2wogPpeo3xd5Account:
zhuangjianguoBranch:
claude/area-A5-33624Worktree:
objectstack-issue-33624Domain:
domain:serverSeat:
domain:server#5File surface:
packages/runtime/src/domains/packages.ts,packages/runtime/src/app-artifact-handlers.ts, the runtime package-uninstall cleanup registration,packages/metadata-protocoldeletePackage only if the measured seam is there (E1 told), their tests, a changeset (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default (no path-derived mandate; dispatch-gates --tier at bd96ec9c),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack runtime: the protocol uninstall door may not unbind engine action handlers | install-local DELETE already unbinds (PR #33622) | anyone uninstalling a package through DELETE /api/v1/packages/:idThread-read: none
Premise: holds (read from code only; step 1 measures it)
Serial constraints cleared: PR #33622 (merged, install-local unbind); E1 in-flight metadata-protocol claims (#33563 #33564 #33486 fold): protocol.ts not edited
Step 1 is measure-first. If it does not reproduce, the PR is the measurement pin only and the card closes with it.
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5
os-dev-report
{ "issue": 33624, "status": "done", "branch": "claude/area-A5-33624", "pr": "https://github.com/objectstack-ai/objectstack/pull/33844", "pr_number": 33844, "head_sha": "a8b2316a243cbc3be61cd689750661047e958081", "session": "session_01QsR2jTEivi2wogPpeo3xd5", "premise_still_valid": false, "summary": "H1 is falsified, measured on a real kernel (ObjectKernel + SQL driver + ObjectQLPlugin + AppPlugin, every call through HttpDispatcher.dispatch). (1) A package DELETE /api/v1/packages/:id can uninstall is a writable base (POST /packages, then action and body hook saved with ?package=ID). Its handlers sit under the authored owner metadata-service, never app:ID. After DELETE answers 200 the engine lists no holder of the action key, the action answers 404 RESOURCE_NOT_FOUND with nothing run, and the hook no longer fires. A CONTROL authored package still runs. (2) A package the runtime binder bound under app:ID (manifest.register with source marketplace, then bindAppArtifactHandlers with install-local's options, as the install-local install does; a code boot lands the same way) is refused 422 WRITABLE_PACKAGE_REQUIRED before anything moves, because isWritablePackage is false for any id in engine.manifests. So the binder's owners never reach this door, and fix A is not taken. CONTROL through the install-local door: marketplace-install-local-uninstall-handlers.test.ts 6/6 green. Area question (#33546 announcement): two paths each withdraw the authored handlers. One is the awaited uninstall announcement (metadata:reloaded, then ObjectQLPlugin resyncAuthoredHooks/Actions). The other is the protocol's fire-and-forget delete mutation events (state deleted), which run the same resyncs. Ablating either alone stays green; ablating both is red. H2: the shared registry exists and both doors walk it (protocol-package-uninstall.ts:385 runUninstallCleanups; marketplace-install-local-plugin.ts:3718 into :4107). No runtime.package-handlers cleanup exists. The PR is the measurement pin alone (test-only, Fixes #33624). It needs the skip-changeset label from the area: Check Changeset is red only for that.", "tests": "New pin packages/runtime/src/domains/packages-uninstall-handlers-withdrawn.test.ts. Local, under os-verify-lock on dc4710ef: Test Files 1 passed (1), Tests 2 passed (2). CI on head a8b2316a, Test Core (3/8): '✓ local src/domains/packages-uninstall-handlers-withdrawn.test.ts (2 tests) 1040ms'. CONTROL pnpm --filter @objectstack/cloud-connection exec vitest run src/marketplace-install-local-uninstall-handlers.test.ts: Tests 6 passed (6). pnpm --filter @objectstack/runtime typecheck: VERDICT command-exit 0, check:test-typecheck OK. The full local runtime suite (vitest --project local) was NOT MEASURED locally: five lock attempts got VERDICT queue-timeout (exit 99), because holder pid 25671 (issue-33608 final-tests.sh, cli integration) held the lock for more than 66 min. CI Test Core 1-8/8 is success on a8b2316a. Ablations: one-time, through scripts/ablation-replace.mjs; the objectql legs were rebuilt and proved in dist by ablation-dist-preflight; the tree was restored with git status --porcelain empty and --absent on the rebuilt dist. Leg 1, announcement removed (packages.ts): green. Leg 2, the deleted-state mutation resync removed (objectql plugin.ts, marker present in 2 built files): green. Leg 3, legs 1+2: red, 'no handler is left under the uninstalled package's action: expected [ 'metadata-service' ] to deeply equal []'. Leg 4, read-only refusal removed (packages.ts): red, 'expected [ 200, undefined ] to deeply equal [ 422, 'WRITABLE_PACKAGE_REQUIRED' ]'.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 50 families for the 1-path diff. Run unlocked, each exit captured before any pipe: 48 exit 0. Two did not pass first time and were re-run on fixes: check:slot-lookup was exit 1 (an any-typed manifest service lookup in the new test), fixed in dc4710ef, re-run exit 0. check:query-options-erasure hit the 300 s timeout (exit 124), re-run detached, exit 0. --ran reconciliation: 50 derived, 48 run, 0 NOT-MEASURED, 2 UNRUN. The 2 UNRUN are check:type-check-debt (needs the lock, never granted) and check:dual-build-cjs-loads (left to CI). CI check-runs on a8b2316a: Lint & Repo Gates success; Lint · ESLint success; Lint · scoped · slot lookup & corpus success; Lint · scoped · query-options erasure success; TypeScript Type Check success; Type Check · debt ledger success; Test Core (1/8..8/8) success; Build Core success; Governed Surface Queue Guard success; Dogfood Regression Gate success; Live E2E UI success; Test UI success; PR-body guards success. Check Changeset failure (skip-changeset label absent; the area adds it). PR-body gates run locally before pr_create, all exit 0: check-changeset-no-major --base origin/main, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword. Repo-wide pnpm lint was not run locally; CI Lint · ESLint is success.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, #33844, read back byte-identical 7060/7060); post-stamped os-dev-report comment on #33624 (POST /repos/objectstack-ai/objectstack/issues/33624/comments). git push x4 (not REST).", "line_budget": "+237 / -0, one test file; no skills/** touched", "files_changed": ["packages/runtime/src/domains/packages-uninstall-handlers-withdrawn.test.ts"], "deviations": [ "Conflict between dev-common and os-dev.md on the skip-changeset label. dev-common says the area adds it; os-dev.md says to declare it with pr_create labels. I followed dev-common and sent no labels, so Check Changeset stays red until the area labels the PR.", "Conflict between dev-common and os-dev.md on the PR body's first line. dev-common mandates the attribution HTML-comment line; os-dev.md bars dev-written HTML comments. I followed dev-common, and the read-back is byte-identical.", "Conflict between dev-common and os-dev.md on local verification. dev-common asks for local pnpm lint and the tests of direct dependents; os-dev.md leaves the repo scan to CI and owes dependents nothing when the public surface is byte-identical. This diff is test-only, so I ran neither locally. CI Lint · ESLint and Test Core are success.", "The final head a8b2316a is a merge of origin/main (incoming changes touch runtime, objectql and core). My local pin, control and ablation runs were on dc4710ef and db21c2c2. The re-run on the merged head after a closure rebuild was NOT MEASURED locally (lock queue-timeout x2). CI Test Core ran the pin green on a8b2316a.", "The first ablation attempt's objectql build failed at DTS after emitting a mutated JS dist. The source was restored by the trap, and the next run rebuilt objectql from the restored source, with ablation-dist-preflight --absent passing. The failed build changed no reading.", "A runtime-suite attempt spelled with a bare '--' was killed while still queued and never ran. It was replaced by a correctly spelled run, which also never got the lock." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "noted, not filed · carrier: none · Ablation leg 4: were the 422 read-only refusal on DELETE /api/v1/packages/:id ever lifted for a registered manifest, the door answers 200 for a package whose handlers the binder holds under app:ID. That is unreachable on main (ADR-0070), so it goes in Acceptance notes only.", "noted, not filed · carrier: none · With the announcement ablated, the authored withdrawal relies on the fire-and-forget delete-event resync winning the race before the door answers. The awaited announcement is the deterministic path. It is not a defect on main." ] }test(runtime): the protocol uninstall door leaves no handler of the p…