Skip to content

babysit-loop: wire effective promotion-state resolution into the merge rung partition #1695

Description

@kyle-sexton

What

The rung partition in plugins/source-control/skills/babysit-loop/SKILL.md (step 3, "Rung partition") computes merge eligibility from the tracked rung and the item's recorded work class only. It never resolves the effective promotion state of the merge cell it is exercising — the guardrail contract makes the bound state a CEILING that consumers must resolve against live promotion-evidence telemetry before every autonomous merge decision, fail-closing to unpromoted when evidence is unavailable (plugins/autonomy/skills/setup/schemas/guardrails-security-binding.schema.json, promotion_state description).

Consequence: a c3-autonomous (or c2-mechanical) seam keeps auto-merging even when a contrary event should demote the cell or evidence is unavailable. The contract's automatic fail-closed demotion is declared but not wired into the partition.

Raised by Codex review on #1694; the loop-lane prompt retains --merge human-only in its copy-blocks until this lands.

Work-class

C4 — structural: changes the merge partition's decision inputs in a governance-enforcing skill.

Acceptance

  • Rung partition resolves the effective promotion state for the cell backing each rung (C2-auto-merge, C3-auto-merge) before computing the merge-eligible set, fail-closing to human-gated when the telemetry source is unavailable.
  • A demotion event observed in telemetry excludes the affected class from the eligible set on the next cycle without any config change.
  • Prompt copy-blocks may then direct operators to drop --merge human-only once the suggested evidence predicate is met.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PfjSBcWkzNFCydZQYsfUc4

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: securitySecurity-relevant: vulnerability, hardening, or disclosure follow-up.needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.priority: highSignificant impact, or blocks an imminent release; staff this cycle.status: needs-decisionAwaiting a human or maintainer judgment call.work-class: structuralRefactors, migrations, contract changes; cross-cutting and hard to reverse.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions