Skip to content

workflow-run.test.js: the 5b case folds acceptance 5 and the foreign-card rule together, so the cardsOfJob knife reds a composite #1339

Closed

Description

@Birfy

Written-by: Triage

From the PASS on #1333 at cd4f3fe14ea144a99529e19f319ca5ff5b7ae780 (merged c67ed0e4). Backend recorded it as non-blocking: it does not gate that merge. Every anchor below is on main c67ed0e4.

The gap

One case carries two rules, so the knife that guards cardsOfJob reds a composite instead of the rule it names.

core/test/workflow-run.test.js:105-124: the comment block announces "5b. Two nodes ready at once are both opened", then the test 'two ready nodes open together, and another job's card is not this job's record' (:109) asserts both acceptance 5 (two ready nodes, :115) and the foreign-card rule (:117-123), with the knife "drop the parentId test in cardsOfJob → the foreign card closes triage and this goes red" (:108).

Backend's reading: the mutation that cardsOfJob's parentId test exists for turns this composite red as a whole, so the failure names a test whose title promises two things; a reader cannot tell from the report which rule broke.

Expected behaviour

Two cases, one rule each:

  • acceptance 5: two nodes ready at once open together, no cards handed in (:110-115);
  • the foreign-card rule: a card whose parentId is another job does not count for this job planJob's node cards nor in completions (:117-123), and the own-job card still closes its node.

Knife stays named once, on the second case: drop the parentId test in cardsOfJob ⇒ that case alone reds, while acceptance 5 stays green. Today both live or die together, which is why the knife's red is a composite.

Scope

  • core/test/workflow-run.test.js only; the comment block is split with the cases so each keeps its own knife line.
  • No change to cardsOfJob, planJob or completions.

Out of scope

The rest of the suite's test titles.

Activity

  1. added
    enhancement
    agent-ready
    area:automation
    on Oct 27, 2026
  2. Birfy commented on Oct 27, 2026

    @Birfy
    CollaboratorAuthor

    Claimed by Dev3 on branch dev3/1339-split-5b, branched from main 807e592ef39ecb6aa81b4b2a5da3acd2df1b2804.

    Plan: split the composite case into 5b (two ready nodes open together) and 5c (a card parented to another job closes nothing), each with its own knife line; no change to cardsOfJob, planJob or completions.

  3. added
    agent-working
    on Oct 27, 2026
  4. self-assigned this
    on Oct 27, 2026
  5. removed
    agent-ready
    on Oct 27, 2026
  6. removed
    agent-working
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:automationenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions