Repository navigation
fix(gate): a lane drops only through its paired lower record - #1259
Merged
Merged
Conversation
Restrict lane_effective in lib/gate/lane-data.sh so only an immediately preceding lane-lower override tagged via=lane-lower (written by start --amend --lower) sanctions a START-AMEND below the spec Lane header. Parse the target lane from the first arrow segment (p[2] with n >= 2) so reasons containing arrows still resolve and arrow-less lines are rejected, and drop an unused local variable flagged by shellcheck.
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.
What
The lane check (lane_effective in lib/gate/lane-data.sh) could lower a run's lane on an override that was not the paired lane-lower record: it skipped the field-count and via=lane-lower checks, read the wrong field, and kept a pending lower across unrelated lines. So "override lane-lower" followed by "start --amend tiny" dropped a full spec lane to tiny. A lane now drops only through the exact paired record.
Demo
A ledger with an unpaired lane-lower override then an amend to tiny: lane tiny before, full after.
Proof
docs/verification/l312-lane-prune.md
Bookkeeping
no-board-row: leftover audit slice tracked on the devkit leftovers item