Skip to content

lifecycle: a read call that says whether a plan is stale before it's approved #4648

Closed

Description

@lex00

chant at b1b9e44 (0.124.56). From Arugula (arugula-salad/arugula), which pins 0.108.1 and is planning the move to build: newest (arugula#1675).

Problem. A platform that shows a plan for approval needs to know, before applying, whether anything changed the targets since that plan was made, including applies from a laptop or another CI. chant checks the digest at apply time, but there's no read call to ask beforehand. Arugula's platform counts only its own applies as making a plan stale. The data is in the ledger (chant ledger applies --since), but the caller has to know which targets a plan covers and how to compare.

Ask. A read in the read contract: chant plan stale <digest> [--json] (or a ledger view) that says whether any apply touched the plan's targets after the plan was recorded, listing those applies (who, when, which run). It should be safe to call from a platform before it asks a person to approve.

Done when: a test where an apply from another run after the plan makes it stale, and one to an unrelated target doesn't. The JSON shape is added to workspace-read-contract.mdx.

Activity

  1. added
    enhancement
    area:lifecycle
    epic:arugula
    on Oct 28, 2026
  2. lex00 commented on Nov 1, 2026

    @lex00
    ContributorAuthor

    Tracked on Arugula's side in arugula-salad/arugula#1988 (epic: Arugula on chant), which lists every place Arugula waits on chant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:lifecycleenhancementepic:arugula

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions