Skip to content

ADR-0150: the email template send judges the served holders (a disabled package holds no name at the send) #32670

Open

Description

@objectstack-fleet

epic:#31527#1 · os-bill · session_01Utp6CYGYEUhpi29FpjLmxT

Parent: #32354 (nested here because #31527 is at GitHub's sub-issue cap). Filed under epic ruling R4-E on PR #32497 (#32183).

Blocked-by: #32183

Premise

#32183 makes a disabled package hold no name at the resolve. Under ruling R4-A, PR #32497 holds the email template send door (packages/plugins/plugin-email/src/template-loader.ts, bundleAddressOf) at main's answers: the resolve, the holder count and the shared view read every holder (includeDisabledPackages: true). So at the send, a disabled package still counts as a holder, and a refusal still names it. This card makes the send judge the served holders without leaking another package's bundle member.

Why it was not done in #32183: the door reads a flat environment-wide list after a scoped resolve. Three review rounds each found another member on a disabled holder's side of that list: a row of its customization pair, or a locale a dependent adds (contract review 6819947096, M3).

Fix shape

Acceptance

  • The reviewer's probe matrix of 6819947096 ① (704 answers per tree at the send door):
    • one or two holders, each enabled or disabled;
    • a package-less row (the environment's item before or after, a stored row);
    • a pair member row;
    • a dependent's addition, enabled or disabled;
    • a built-in template;
    • every caller class;
    • en-US and fr-FR, both reads, both orders.
  • Every answer is either unchanged from main or a declared, pinned row.
  • Real stored pair rows and a dependent's addition in the pins, not a double over registry.listItems.
  • CONTROLs: all enabled; one holder.

Order

Activity

  1. added
    priority:p2
    pm:blocked
    area:devpath
    domain:server
    on Nov 12, 2026
  2. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#1 · os-bill · session_01Utp6CYGYEUhpi29FpjLmxT

    Scope addition from ruling R4-B2 (6820387912 on PR #32497) · 2026-11-12T09:53Z

    This card also carries the _env cell of #32183's row 17, withdrawn under R4-B2. #32183 holds _env at main: a name held only by disabled packages answers 409 naming them. This card moves it to row 17's 404 once disabled packages hold no name. That needs the _env mark carried to the item face through both transports, and it must not serve a disabled package's pair row.

  3. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unblocked → pm:queue · 2026-11-12T19:49Z

    ⛔ Not a claim.


    Generated by Claude Code

  4. added
    pm:queue
    pm:dispatched
    and removed
    pm:blocked
    pm:queue
    on Nov 12, 2026
  5. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: area-lease pilot #33059, area E2 (label lease:E2) · 2026-11-14T16:08Z
    Session: session_016WV4cyrFFk86Jqf7Mp5Rzw (area E2 thread)
    Account: os-elon-musk
    Branch: claude/area-E2-32670
    Domain: domain:server
    Seat: domain:server#5 (area E2)

  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
     "issue": 32670,
     "status": "done",
     "branch": "claude/area-E2-32670-followup",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/33678",
     "session": "session_016WV4cx5ZPCyTk8ckTsx4ut",
     "premise_still_valid": true,
     "summary": "Item 3 of contract review 6882047833 on #33361 is the 'separate, declared move' owed once #32354 landed; #32354 landed in #33405 (merged before #33361), so it was owed and was code. servedBundleAddressOf now chooses the address on the served count (one served holder => environment-wide list, two or more => the holder's own address) when the bundle is read from the protocol's execution list, which since #33405 withholds a disabled holder's side; the registry-only read keeps the per-holder address because registry.listItems still lists a dependent's addition to a disabled holder (measured). Nit N1 done: the unreachable environment-item branch answers NO_BUNDLE. Probe over 1,152 answers: 12 move (protocol, BETA disabled, fr-FR: PAIR fr-FR -> ADDER fr-FR), all to the answer the world gives with BETA holding nothing; 0 move away. Part of #32670 (card stays open: #33385 is open).",
     "tests": "At 7612a59d: pnpm --filter @objectstack/plugin-email test => Test Files 53 passed (53), Tests 1018 passed (1018); typecheck exit 0 (check:test-typecheck OK); eslint on the two changed files exit 0; lock VERDICT command-exit 0. template-loader.test.ts runs 80 (76 on main): BETA-disabled case expectations moved, new 'one holder' CONTROL (4 tests). Ablation 1 (main's loader restored on disk, servedCountDecides count 0 vs 6 at HEAD): 2 failed | 78 passed (protocol, BETA disabled, both orders), VERDICT command-exit 1; restored, blob hash equals HEAD, status clean. Ablation 2 (servedCountDecides forced true, anchor 1->0, injected 1): 6 failed | 74 passed (registry read: ALPHA disabled, BETA disabled, auth ALPHA disabled, both orders); restored, hash equal. Head 9754555c = one clean merge of origin/main touching no plugin-email file; not re-run on it.",
     "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack at 7612a59d, 64 commands, exit captured per command: 61 exit 0 (incl. check-adr-0087-registration, check-changeset-no-major, check-empty-changeset, check:engine-double-contract, check:test-source-alias, check:registry-log-declared, check:nul-bytes, check:published-files, check:type-check-coverage). NOT MEASURED 3: check-plugin-teardown-shape --self-test (exit 3, shallow clone, control commit unreachable), check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET: no whole-tree dist), check:type-check-debt (exit 3 under 4096 MB cap; uncapped re-run began a whole-closure build under the shared lock and was stopped). --ran reconciliation not completed (stopped with the type-check-debt re-run). CI on 9754555c when read: 17 in_progress, 5 skipped, 1 success, 0 failure.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/33678/assignees), post-stamped os-dev-report comment on #32670; plus git push (not REST)",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: none (observation) · the registry-only read (no protocol registered) with one served holder beside a disabled one still answers ALPHA's own address (fr-FR 'no template') where the world without the disabled holder answers ADDER fr-FR; registry.listItems withholds no disabled side · carrier: none, noted in PR Acceptance notes"
     ],
     "deviations": [
      "The first local commit ran with core.hooksPath overridden by mistake (skipping pre-commit); it was reset and re-committed with the repo's hooks (7612a59d). Merged origin/main (9754555c) before opening the PR so the write tools were current; tests were not re-run on the merge (no overlap)."
     ]
    }
  7. 2 remaining items

  8. removed
    pm:dispatched
    on Nov 15, 2026
  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-16T09:50Z

    ⛔ Not a claim.

    The comment-only edge from the 11-15 release note, #33385, is closed. That note asks the next seat to check what is left here once #33385 lands, and to close the card if nothing is. Queued for that check.

  10. added
    pm:queue
    and removed
    pm:blocked
    on Nov 16, 2026
  11. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p2 → p3 (maintainer) · 2026-11-16T15:53Z

    ⛔ Not a claim.

    Backlog re-grade (p2 batch 1): the maintainer set p3. The ADR-0150 email-template corner with a disabled package stays queued at p3.

  12. removed
    area:devpath
    on Nov 19, 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