Skip to content

A decision point asked in a steward's turn writes its answer record into the checkout's working tree #2786

Closed

Description

@lex00

Part of #2715. Found while moving the factory's runner into the studio kit (arugula-salad/studio#47).

Problem

The steward rule (#2731, packages/core/src/op/steward.ts) says a steward's writes never touch the checkout's index or working tree. They are the coding agent's. chant workspace points ask, and askPointInRun after #2768, write the answer record as a file in the answer kind's directory. In a steward's turn, that file lands in the working tree the coding agent edits, untracked, and stays there until someone commits it.

The kit's dispatch Op asks the slice-tier point from its Pick step. It has to ask in the checkout, because an answer written in the Op's leased worktree would disappear with the worktree, and nobody would see the question. So every tier question leaves an untracked answers/slice-tier-*.md in the box's app repo.

Change

Decide where a steward's answer records go. Two options:

  • a ledger on chant/lifecycle, which points --open and hud read;
  • the working tree, with the steward rule amended to allow it.

Check

A steward turn that asks a point leaves git status of the checkout clean, and points --open --json still lists the question.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions