Skip to content

ce-babysit-pr: stale-computation degrade resets the settle clock (+300s) #1562

Description

@MrGTV-love

Problem

In skills/ce-babysit-pr/scripts/pr-snapshot, the 600s race-candidate \u2192 stale-computation presentation flip mutates base.identity (and sets merge_computation_stale). Because _change_sig hashes the full base dict (json.dumps(state.get("base"))), that presentation-only change reads as movement: last_change_at resets, and the PR gains a synthetic +300s settle before merge-ready fires.

Fix

Normalize base in the settle signature: present stale-computation as its race-candidate identity (race) and omit the merge_computation_stale report flag. Every other identity value (probe-error, race, mergeability-pending, current) and freshness stay in the signature, so a genuine probe-error\u2192race\u2192pending\u2192current transition still resets the clock.

Tests

  • stale-computation degrade is signature-neutral (no settle reset)
  • genuine base identity transitions still change the settle signature
  • default-300 end-to-end assertion on the existing stale-transition snapshot test

bun test tests/ce-babysit-pr-snapshot.test.ts \u2192 167 pass. release:validate and plugin:validate pass.

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