Skip to content

Landing-order break: PR #6510's dev cell pins the RAW warn total at 2, which includes the #6505 false positive the #6505 fix removes #6511

Description

@os-support-ai

Measured while implementing #6505 (branch claude/issue-6505-predicate-valued-gate-rules). Filed unassigned rather than folded in: the file is in an unmerged PR, so it does not exist on main and cannot be edited from the #6505 branch.

The collision

PR #6510 (Fixes #6445, head cbb77c304, in the merge queue) adds
packages/react/src/__tests__/SchemaRenderer.disabledGateFaultDiagnostic.test.tsx. Its group-1 development cell reads:

mount([{id: 'n1',disabled: FAULT_BARE_DEV}]);
...
// subtracted by NAME rather than by countexpect(nonValidatorWarnings(warn)).toHaveLength(1);expect(allWarnings(warn)).toHaveLength(2);// <- line 372

The 2 is our line + the #6505 false positive. FAULT_BARE_DEV is the bare expression 'devonlybadroot.locked == true', the mount helper always supplies type, and id is a string — so disabled must be a boolean is the only thing validateSchema reports for that node.

Once #6505 lands, that node validates, the second warning is never emitted, and allWarnings(warn) is 1. Line 372 goes red.

The file's own design is not at fault and is arguably what caught this: everywhere else it subtracts the noise by name (nonValidatorWarnings), which is invariant under the #6505 fix. Line 372 is the one raw-total pin in a dev cell, and its docblock says why the raw total was worth pinning at all. The other two dev cells (nonValidatorWarnings(...).toHaveLength(0) at ~537, and the dev/prod parity cell at ~643) are unaffected. Production cells are unaffected — the validator is a no-op there, which the file already states.

Scope

Exactly one assertion, in one file:

filelinenowafter #6505
packages/react/src/__tests__/SchemaRenderer.disabledGateFaultDiagnostic.test.tsx~372expect(allWarnings(warn)).toHaveLength(2)1

Why this needs its own card rather than a rider

Neither PR can fix it alone:

So whichever merges second turns the other's suite red on main, and the fix is a one-line edit whose correct value depends on which order that was. Landing order:

Whoever takes it should also consider whether the raw-total pin is worth keeping in a dev cell at all now: with the #6505 false positive gone, allWarnings and nonValidatorWarnings are the same number in every dev cell, so the line's stated value ("a build that printed our line twice") is already carried by the by-name assertion beside it.

Ref: #6445, #6505, PR #6510.


Generated by Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions