Repository navigation
Commit a8a2021
lane-u5a-2359
test(file-safety): pin the refusal the mode-copy identity guard owes
Give the staging check one file identity and the opened descriptor another, so
the write has to refuse before the mode copy instead of publishing after having
changed the mode of a file it never staged. With the guard in place the row
passes; with the guard taken away the same row fails because the promise
resolves rather than rejecting. It sits in the caller-supplied staging path
group, beside the rows that stub the same flow.
Measured with the committed instrument over the four selector ranges the guard
derived, blocking on src/services/file-safety/safeWriteText.ts falls from 10 to
5 on that reduced selection. The row is a spec file, so the instrument counts 0
executable lines for it and it spends none of the headroom that file has under
the per-file cap.
Carries the test obligation for commit 5efde13
and answers review comment 4533489470 on pull 1912.1 parent 98246bf commit a8a2021
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
1998 | 2035 | | |
1999 | 2036 | | |
2000 | 2037 | | |
| |||
0 commit comments