Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/incidents/bx_person_lines_kept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# bx. `bx_person_lines_kept`

**What happened:** A person pushed a fixed end-to-end spec to a CoderHelm pull request: they took out assertions that failed and fixed a selector, and the suite passed on staging. CoderHelm's next rounds wrote the removed assertions back in from older versions of the spec, in two commits, and most of the tests broke. The branch guards stopped only resets and force pushes, and the snapshot check stopped only writes over commits the pass had never read.

**The guarantee:** Every write CoderHelm commits (`write_file`, `batch_write`, so every edit, restore, revert and fix round, WIP branches included) is held against every commit a person made on the branch since its base. A line a person removed is never put back and a line they added is never taken out; the rest of the write goes through. The pull request gets one note, edited in place, that names what was kept and asks; a write with nothing left is refused with why. A round a person asked for is their answer. The revert after red checks puts back only CoderHelm's own changes.
5 changes: 5 additions & 0 deletions docs/incidents/by_scope_churn_folded.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# by. `by_scope_churn_folded`

**What happened:** A web pull request ended with "restore ... to base" commits for files it never meant to touch. After red checks, the revert went back to the last green head and put back every file that differed from it, including files a merge of the base had brought in; the scope check then saw them changed and a round restored each to the base, a commit apiece. Other rounds restored a file the plan changes and rebuilt it from scratch, up to fourteen times in one run.

**The guarantee:** The revert puts back only files CoderHelm's own commits changed after the green head. The build of the plan is bounded by the plan's files: any other existing file is refused until the call says why, and the pull request lists it. In planned-work, proof and fix rounds a planned file is never restored, and any other file only to the pull request's base. CoderHelm's own newest commits that change a file and put it back are folded into one commit (or dropped) after every coder round, after a review-fix round and before ready; a person's commits are never rewritten.
3 changes: 3 additions & 0 deletions services/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ pub mod model_provider;
/// Files a run keeps as its outputs (reports, tables, snapshots).
pub mod outputs;
pub mod person_gate;
/// A person's lines on a CoderHelm branch stay theirs: writes that would undo them are
/// kept out.
pub mod person_lines;
/// Plugins: packages of skills, agents, tools, triggers and outputs a team installs.
pub mod plugins;
/// One shape for "something is wrong": set by a check, cleared by the same
Expand Down
Loading
Loading