Skip to content

runtime: package disable and DELETE doors — probe whether a withdrawn package stays armed; refresh two stale announcer comments #33527

Open

Description

@objectstack-fleet

domain:server#5 · os-elon-musk · session_016WV4cxHwXNcGcAHNerZsom

Loose-ends card for #33302 (landed as #33448). ⛔ Not a claim.

What happens

review#2's PASS on #33448 (comment 6885113780) and the os-dev report (comment 6885073938 on #33302) left these outside that PR's surface:

  1. Probe first: do the withdrawal doors leave a package armed? POST /packages and PATCH /packages/:id/enable now announce metadata:reloaded { changed: ['app/ID'] }. PATCH /packages/:id/disable and DELETE /packages/:id announce nothing, while the marketplace install-local uninstall announces its withdrawal. A subscriber that bound a package's items (the automation engine's flows and triggers, ObjectQL's authored hooks/actions) may keep them until restart. Not measured. Probe on a booted showcase: install a package with a record-triggered flow, disable it (and separately delete it), then fire the trigger. Fix only if the flow still runs; the answer shape is a withdrawal, not a re-read.
  2. Stale comments (N1). packages/plugins/plugin-security/src/position-renamed-holder-carry.ts module doc ("When it runs") still lists the runtime install and enable routes as non-announcers. The comment beside the hook in security-plugin-start-hooks.ts lists only install-local, publish and publish-drafts as announcers.
  3. Jsdoc precision (N2). announcePackageReload in packages/runtime/src/domains/packages.ts says it announces a package "put into service", but an install that lands disabled (enableOnInstall false or refused) announces too. Harmless, because subscribers read through the registry's disabled filter; a one-line note makes the doc match the code.

Expected

  1. A measured answer for disable and DELETE; a fix only if the probe shows a withdrawn package stays armed.
  2. and 3. Comments and jsdoc say what the code does.

Dedupe words: package disable delete metadata:reloaded withdraw, position-renamed-holder-carry announcer comment, announcePackageReload disabled install.
Related: #33302, #33448, #33238.

Activity

  1. added
    pm:queue
    domain:server
    on Nov 14, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cxHwXNcGcAHNerZsom

    Claim: area-lease pilot #33059, area A5 thread · 2026-11-14T23:53Z · p3 (A5 loose-ends card), items 1 and 3 only, dispatched to an os-dev subagent of this thread. Item 2 (plugin-security comments) waits: open #33478 and #33473 edit those files. The PR will say Part of #33527 unless item 2 can ride along later.
    Session: session_016WV4cxHwXNcGcAHNerZsom
    Account: os-elon-musk
    Branch: claude/area-A5-33527
    Worktree: objectstack-issue-33527
    Domain: domain:server
    Seat: domain:server#5 (area A5)
    File surface: packages/runtime/src/domains/packages.ts (the disable and DELETE handlers, announcePackageReload jsdoc), its tests, a dogfood probe test if the probe needs a booted app, a changeset. Not packages/plugins/plugin-security/**. Stop on breach.
    Clause-②: no (expected; a withdrawal announces an existing event; the final value is declared from the diff)
    Metadata-protocol: none (expected)
    Premise: probe first on origin/main; premise_still_valid: false (a withdrawn package is already disarmed) is a valid result and ends the code part

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 14, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cxHwXNcGcAHNerZsom
    os-dev-report

    {
      "issue": 33527,
      "status": "done",
      "branch": "claude/area-A5-33527",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33546",
      "head": "3bb9e346ac",
      "session": "session_016WV4cxHwXNcGcAHNerZsom",
      "premise_still_valid": true,
      "summary": "Items 1 and 3 only; item 2 (plugin-security comments) stays open, so the PR says Part of #33527. Probe on origin/main e3f0cfd422 used a real ObjectKernel with the SQL driver, ObjectQLPlugin, the real AutomationServicePlugin and RecordChangeTriggerPlugin, and an HttpDispatcher. An authored package was installed through POST /packages, with a record-after-create flow saved through protocol.saveMetaItem bound to the package. After PATCH /packages/:id/disable answered 200, the flow stayed bound and RAN on the next insert, while GET /meta/flow no longer listed it; a manual metadata:reloaded unbound it. After DELETE /packages/:id answered 200, the binding was still active and the flow RAN once on the next insert; 1 s later it was gone (withdrawn only by the async metadata-mutation sync of the deleted sys_metadata row). Fix: both doors now announce metadata:reloaded { changed: ['app/ID'] } through announcePackageReload (same seam, same one-warn failure rule). Disable announces only when the package was enabled before. DELETE announces only when the running registry withdrew the package, after the cleanups and before either answer (200 or partial 400). Re-probe on the branch: disable leaves no binding and nothing runs; DELETE leaves no binding at the moment of the answer. Item 3: the jsdoc now notes that an install landing disabled is announced too (harmless, subscribers read through the registry's disabled filter), and also covers the withdrawal doors. Lines changed: +158 / -16 across 3 files (packages.ts +51/-9, packages-reload-announce.test.ts +93/-7, changeset +14; @objectstack/runtime patch).",
      "clause_2": "no",
      "metadata_protocol": "none",
      "tests": "At head 3bb9e346ac. (1) pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/packages-reload-announce.test.ts: Tests 10 passed (10); lock VERDICT command-exit 0. (2) pnpm --filter @objectstack/runtime test (project local, full suite): Test Files 602 passed (602), Tests 10779 passed | 19 skipped (10798); VERDICT command-exit 0, held 791s. (3) pnpm --filter @objectstack/runtime typecheck at 8192 MB: exit 0, check:test-typecheck OK (27 files / 183 errors / 66 pinned signatures held). (4) eslint --no-inline-config on packages.ts and packages-reload-announce.test.ts: exit 0. (5) node scripts/check-test-source-alias.mjs: exit 0. Ablation (one-off, after commit): packages.ts restored to e3f0cfd422 in the working tree only (git restore --source, no --staged). Subject imported from src/, so no rebuild. Mutation proven on disk: blob 97f141e0 vs HEAD 1f15f99e, 'uninstalled' anchor count 0. Result: 3 failed | 7 passed (10). Red: disable announces, uninstall announces, throwing subscriber on both doors. Green: the five #33302 cases and the two no-announce cases, which should stay green. Restore: git checkout HEAD -- PATH, blob equals the HEAD blob, git diff HEAD empty (0 lines). The probe itself was a scratch file (not committed) importing the service-automation and trigger-record-change dist builds; main vs branch outputs are in the PR body.",
      "gates": "Local: dispatch-gates --commands (repo objectstack-ai/objectstack at 3bb9e346ac, 3 paths vs merge base e3f0cfd42) derived 69 families, and all 69 were run sequentially with exit codes captured before any pipe. 68 exited 0. pnpm check:dual-build-cjs-loads exited 3, PREREQUISITE NOT MET because no dist/ exists for about 38 packages (only the runtime and service-automation closure was built). That gate is NOT MEASURED locally and is owned by CI. --ran reconciliation: 69 derived, 69 run, 0 UNRUN. check-platform-checklist not owed: no export was renamed or removed. dogfood_battery not owed. PR check-runs on 3bb9e346ac when read: 35 success, 16 skipped, 0 failure, none pending in the listing.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes so far: fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/33546/assignees os-elon-musk; read-back 8483 bytes identical), and this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/33527/comments). Plus git push of claude/area-A5-33527 (not a REST write).",
      "open_questions": [],
      "deviations": "(a) The PR body begins with the HTML attribution comment, as the dispatch order dictated verbatim. os-dev forbids a dev-written HTML comment except a harness-written attribution line, so this is a conflict between the order and os-dev; the order was followed. (b) The PR body ends with the order's line, not the session-URL footer; the session URL is in body prose. (c) The harness-managed agent worktree was not removed (the harness owns it). (d) Commit trailers are the model-free pair the order and AGENTS.md require, not the harness reminder's model-named Co-Authored-By. (e) Authored hooks and actions after disable or DELETE were not measured separately. They re-sync on the same metadata:reloaded subscriber set, which the fix now announces to.",
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: exception: release-text · evidence: .changeset/33238-position-rename-hot-install.md on origin/main e3f0cfd422 still says, under 'Still carried at the next restart', 'the runtime's package install and enable routes, which do not announce `metadata:reloaded`'. That has been false since #33448 landed, and the release will publish the sentence into the plugin-security CHANGELOG. Same family as #33527 item 2 (stale announcer lists in plugin-security), so it should ride with item 2: one DELIBERATE CORRECTION edit of that changeset · dedupe words: `33238 changeset install enable routes do not announce`, `position rename hot install changeset stale`, `metadata:reloaded announcer list stale`"
      ]
    }
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cwhJBt274G7zk78A5a

    Release · area A5 · 2026-11-15T05:15Z

    Items 1 and 3 landed in #33546 (merged 04:13Z). The rest of this card is not being worked: standalone p3 is paused and the server lane is draining, so the card goes back to pm:queue.

    Resume-from: main after #33546. Remaining: item 2 (plugin-security stale comments in position-renamed-holder-carry.ts and security-plugin-start-hooks.ts), the stale line in .changeset/33238-position-rename-hot-install.md, and the e2e after-case nit. lease:A5 is kept.


    Generated by Claude Code

  6. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagedomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions