Skip to content

jobs: two jobs of one name compose and the boot schedules neither (residual and two-body) #36431

Todo

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #35711 (PR #36338, a composed artifact's residual extension and jobs). The L2 (S2) and L1 found it from the code; filed by the seat. Parent: #35711.

What happens

A residual job that shares its name with a package body's job, with different content, still composes. The job binder (jobNameCollisions) counts by name and refuses both, so the boot schedules neither. Two package bodies that share a job name end the same way, and a CONTROL test in #36338 pins that they compose.

To do

  1. Decide where a job name clash is judged: at composition (refuse the pair, a further narrowing) or at the binder with a clear boot message naming both sources.
  2. Make one place own it, and pin both the residual and the two-body case.

Acceptance

  • Two jobs of one name never compose into a boot that silently schedules neither.

Blocked-by: #36338

Grade

p2 · area:package · domain:server. Silent loss of scheduled work.


Generated by Claude Code

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:server
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area, pm:blocked and p2 stand as filed; rationale: area:package · Bug · two jobs of one name compose, and the boot schedules neither, so both scheduled jobs silently never run · size S.

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Unlock (daily scan): every Blocked-by: target is closed, so pm:blocked → pm:queue; grade unchanged.

    Target #36338 merged at 2026-11-22T16:37Z. No newer Blocked-by: line in the thread, no Unlock-action: line, no assignee. Same repository, so no installability check is owed.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
  5. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · huangyiirene · session_01J8VVAkQeShvvgjVb5MsbLn

    Claim: PM loop round 1 · 2026-11-24T18:08Z
    Session: session_01J8VVAkQeShvvgjVb5MsbLn
    Account: huangyiirene
    Branch: claude/project-thread-vmbk98
    Worktree: objectstack-issue-36431
    Domain: domain:server
    Seat: repo:objectstack#2
    Area: f2-J
    File surface: packages/spec/src/stack.zod.ts (the composition judge: residualEntryPredicate / SAME_STACK_ENTRY_IDENTITY jobs row and the "Known gap" docblock), a new test file named for this card beside packages/spec/src/stack-residual-extension-jobs.test.ts (and that file's two-body CONTROL only if its pin flips), one ADR-0087 semantic entry under packages/spec/src/migrations/entries/semantic/ with the registry/generated files its gate requires, docblock text only in packages/runtime/src/app-artifact-handlers.ts (jobDeclaringPackages / jobNameCollisions) where a sentence about how composition admits a same-name job goes stale, one .changeset/*.md; no docs/adr/**, no skills/** (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default — quoting this run's --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s), derived here, not recalled." (floor sonnet · default opus · ceiling fable), effort: high, reason: design judgment (composition must read a job name clash exactly as the binder does: enabled jobs only, by name, the residual by count beyond body copies) and the area order f2-J sets effort high; runtime is touched in comment text only, and this is the one dev in its container
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: this repo's composition door (packages/spec/src/stack.zod.ts composeStacks → residualEntryPredicate claims a residual job by NAME, so a residual job differing from a body's job of the same name composes; two bodies sharing a job name compose) | partial: the boot binder (jobNameCollisions, packages/runtime) refuses every enabled job of the name with an error log, and the install-local door refuses the package (collectJobNameCollisions, packages/cloud-connection), but composeStacks / os build pass it | anyone composing a multi-package stack with jobs; no outside user report measured
    Thread-read: 7107631707
    Premise: holds — re-read at origin/main 0e3187e: packages/spec/src/stack.zod.ts:3730 「⚠ Known gap, left to the binder and NOT judged here: the claim is by NAME, so a residual job whose name a package body's job also carries is read as that body's copy even when the two differ, and composes.」 and 「Two package bodies each declaring the name meet the same binder outcome and compose too (cross-package reuse, ADR-0048 §3.4). Whether composition should refuse a job name shared across packages is #36431's question, not this door's.」; stack-residual-extension-jobs.test.ts:99 pins 「CONTROL: a job each body declares stays each body's, not a residual pair」 with distinct names; the same-name two-body case has no pin.
    Pre-claim lane: repo:objectstack seat 2, area f2-J (package install / boot / naming; the job registry the card names). packages/spec/src/stack.zod.ts is a spec-lane path, kept in this lane under area-lease 留道 (route clear); L2 at contract-review tier before the queue (narrowing).
    Pre-claim deps: Blocked-by: #36338, PR merged 2026-11-22T16:37Z (unlock 7107631707). node scripts/pm/overlap-check.mjs at 0e3187e: VERDICT clean (empty change set before the claim; re-run before every push).
    Prior rulings read: node scripts/pm/check-prior-rulings.mjs --card 36431 --paths packages/spec/src/stack.zod.ts,packages/runtime/src/app-artifact-handlers.ts: thread none; 81 ⛔ hit lines in the two files, none on a job name clash at composition. Binding text: stack.zod.ts 「[#35228 ruling A] One package, every door.」 (same-package duplicate identities refused at the contract, composition included); ADR-0150 D3 / #32572 (the binder refuses two enabled jobs of one name, and the install-local door refuses by the same judge so 「the door and the binder cannot disagree about a shared name」). ADR-0048 §3.4 cross-package coexistence does not reach jobs: a job is scheduled by its bare name (app-artifact-handlers.ts 「⛔ Nothing here resolves a bare name to a package: a job is scheduled by its」). Route by SKILL.md 元判据 ②: two implementations of one judgment disagree (install door and binder refuse, composition accepts) ⇒ the governed refusal wins, so composition refuses with the binder's reading. Ruling A does not itself cover two different packages; extending the refusal to two bodies follows ②, not ruling A. Card to-do 1 (where the clash is judged) is answered here by ②, at composition.
    Serial constraints cleared: no in-flight claim or open PR on these files known at claim time (overlap-check clean); #36166 (same area, PR #37065) touches only packages/metadata-protocol.

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

Metadata

Metadata

Assignees

Labels

area:packagebugdomain:serverpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions