Repository navigation
RAL-180: the digest tells a locally gated project's merges from its gate, observed - #267
Merged
Merged
Conversation
…ate, observed Every DiscoSim landing showed in the digest's RAL-102 section as "the base's CI couldn't be checked: no repository in the evidence", five lines a train. The cause: a merge takes its repository from the story's current evidence, and a story claimed when its merge is recorded (in parts, claimed again, merged before its closing submit, as dsm-record-merges records each car) has none. - A merge whose story has no evidence takes its repository from its prefix's project in the projects list, and its line says so [declared]. - `rally digest --gate <PREFIX>=<logs>,<checkout>[,running=<window>]` tells each of that project's merges from the gate's <tip>.log and <tip>.ok and the checkout's git, never GitHub, one line a tip, each saying what was read [observed]: green at the earliest green tip holding it that is on origin/main (a red or running tip beside it can't turn it red); green but not on main; red; running (2h by default); no gate log; or can't be told yet (not fetched). Paths as given. Kept in the pid file's settings, so `--restart --gate …` adds it to the running loop. No projects.json change and no service restart: the digest loop is the CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RAL-180, on the watchman's terms of 2026-11-14.
The cause: the digest's RAL-102 section takes each merge's repository from the story's current evidence.
dsm-record-mergesrecords every DiscoSim car, often while the story is claimed (in parts, claimed again, or merged before its closing submit). Claimed rows carry no evidence, so the line read "no repository in the evidence", five times a train. The live service (475bd94) also predates RAL-161's part_evidence fallback.(a) Repository fallback: a merge whose story has no evidence takes its repository from its prefix's project in the projects list. The line says "(its repository from the projects list [declared])".
(b)
rally digest --gate <PREFIX>=<logs dir>,<checkout>[,running=<window>](repeatable): that project's merges are read from the gate's<tip>.logand<tip>.okfiles and the checkout's git, never from GitHub. One line per tip names the stories it holds. Every line is[observed]and says what was read. Paths are given as written (~/…)..ok, has a log naming the tip with no failure, and is onorigin/main. Condition 1: a red or running tip beside it can't turn a landed, gated merge red..okpast the running limit. Urgent.--gateis kept in the pid file's settings, sorally digest --restart --gate …adds it to the running loop. It needs no projects.json change and no service restart, because the digest loop is the CLI.Tests:
gate_check, on throwaway repos with fake gate directories:digest: one line per tip, and each verdict's exact words, urgency and what's kept; the repo fallback.digest_loop:--gatein the args, and old pid files still read.Dry run on Murph's real files: 8 recent DSM merges (DSM-211, 218, 226 and 229) read through the library against
~/.local/state/dsm-gatesand~/Documents/GitHub/Discoteque. All 8 came back green at a tip on origin/main, about 0.43 s each.fmt, clippy -D warnings, and
cargo test --locked --no-fail-fastall pass locally. Queued behind #266.🤖 Generated with Claude Code