Public: anyone can read this; the crew can change it.

Sentinel: The lane has stopped: nothing has merged and nothing said so #16648

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The forge no longer proposes a revert that its own gate will refuse. When the pull it blames for a red main had added a migration pin, it now files one "fix it forward" issue instead of opening a revert.

Notes

shipped production is serving it deploy 1919ee3

opened this

The forge no longer proposes a revert that its own gate will refuse. When the pull it blames for a red main had added a migration pin, it now files one "fix it forward" issue instead of opening a revert.

That situation is the commonest failure in the sentinel's evidence, gate: <pin> was deleted: a migration on main is history, so restore it. Revert #16643 is a live example: verification after landing blamed #16620, which added 20261128100000-journey-walks.pin. Undoing it deletes that pin, so the revert fails the gate on every run. It still stays open among the red pulls. The test #16643 cites (test/overlap.test.ts) also passes at 0cd2497 in this sandbox, and the owner has already asked on #16643 to close it unlanded.

What changed

  • src/kernel/pin_edits.ts: new plain function addedPins(changes), which lists the migration pins a diff adds.
  • src/checks/pinned_landing.ts (new): pinsLandedBy(app, repo, oid) lists the pins a landing added compared with its first parent, and noRevertWhy(pins) gives the reason in a sentence. It reuses parseNameStatus and runGit; bun scripts/similar.ts found nothing like it under src/.
  • src/checks/culprit.ts (verification after landing): when the culprit is a pull that added a pin, it files one Red after landing: #N broke <file> issue through the existing fileOnce. The issue names the pin, says why there is no revert, and ends with a Files: line, so closeOnGreen still closes it when main goes green again.
  • src/checks/revert_red.ts (red main): proposes no revert for such a pull and leaves it to the alarm, as it already does when more than one pull landed.
  • docs/OPERATING.md: the verify-after-landing paragraph now says this.

Not done

  • People can still revert such a pull by hand from the page, terminal or API; the gate then says why it fails.
  • #16643 is not closed; a person closes it.
  • Main's full check still runs past 40 minutes, which is #16622's work, and the bisection's evidence for a flaky culprit is unchanged.

Tests and checks

  • One new test each in test/verify-after-landing.test.ts and test/revert-red.test.ts. Both fail without the change (the forge opened a revert pull) and pass with it.
  • bun scripts/gate.ts --fix and bun x tsc --noEmit pass.
  • scripts/fast.ts couldn't pick the tests (exit 2: the change touches src/kernel/pin_edits.ts), so I ran 16 covering files by hand: 175 pass, 0 fail.

How to try it: bun test test/verify-after-landing.test.ts test/revert-red.test.ts. On the forge, the next red-after-landing whose culprit added a migration shows up as an issue, not a revert-N pull.

🤖 Generated with Claude Code

Closes #16637

commented

The forge no longer proposes a revert that its own gate will refuse. When the pull it blames for a red main had added a migration pin, it now files one "fix it forward" issue instead of opening a revert.

That situation is the commonest failure in the sentinel's evidence, gate: <pin> was deleted: a migration on main is history, so restore it. Revert #16643 is a live example: verification after landing blamed #16620, which added 20261128100000-journey-walks.pin. Undoing it deletes that pin, so the revert fails the gate on every run. It still stays open among the red pulls. The test #16643 cites (test/overlap.test.ts) also passes at 0cd2497 in this sandbox, and the owner has already asked on #16643 to close it unlanded.

What changed

  • src/kernel/pin_edits.ts: new plain function addedPins(changes), which lists the migration pins a diff adds.
  • src/checks/pinned_landing.ts (new): pinsLandedBy(app, repo, oid) lists the pins a landing added compared with its first parent, and noRevertWhy(pins) gives the reason in a sentence. It reuses parseNameStatus and runGit; bun scripts/similar.ts found nothing like it under src/.
  • src/checks/culprit.ts (verification after landing): when the culprit is a pull that added a pin, it files one Red after landing: #N broke <file> issue through the existing fileOnce. The issue names the pin, says why there is no revert, and ends with a Files: line, so closeOnGreen still closes it when main goes green again.
  • src/checks/revert_red.ts (red main): proposes no revert for such a pull and leaves it to the alarm, as it already does when more than one pull landed.
  • docs/OPERATING.md: the verify-after-landing paragraph now says this.

Not done

  • People can still revert such a pull by hand from the page, terminal or API; the gate then says why it fails.
  • #16643 is not closed; a person closes it.
  • Main's full check still runs past 40 minutes, which is #16622's work, and the bisection's evidence for a flaky culprit is unchanged.

Tests and checks

  • One new test each in test/verify-after-landing.test.ts and test/revert-red.test.ts. Both fail without the change (the forge opened a revert pull) and pass with it.
  • bun scripts/gate.ts --fix and bun x tsc --noEmit pass.
  • scripts/fast.ts couldn't pick the tests (exit 2: the change touches src/kernel/pin_edits.ts), so I ran 16 covering files by hand: 175 pass, 0 fail.

How to try it: bun test test/verify-after-landing.test.ts test/revert-red.test.ts. On the forge, the next red-after-landing whose culprit added a migration shows up as an issue, not a revert-N pull.

🤖 Generated with Claude Code

Approved

Does what the issue asked: a culprit pull that added a migration pin is filed as one fix-forward issue (still closed on green via the Files: line) instead of a revert the gate refuses, and the red-main path proposes none. Both new tests exercise the behaviour. Not a page or terminal feature, so no second door or feature doc is needed; README untouched. Two things I would do next: (1) in revert_red.ts, when it declines for a pin, file the same fix-forward issue there too, so a single-landing red main is not left with no signal at all if the alarm does not cover it; (2) wrap the long filter line in src/kernel/pin_edits.ts addedPins and the over-long comment line in culprit.ts's header for readability.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs