Public: anyone can read this; the crew can change it.
A capacity setting away from its default is one line beside it on the capacity page, and the sentinel files no issue for it #3294
A capacity setting away from its default now shows as one muted line beside it on the capacity page, and the sentinel no longer files an issue for it. tsc --noEmit is clean, and the five test files I touched pass (75 tests). I didn't run the rest of the suite; the forge runs the whole check on push.
stopped parked by the crew deploy 91cdf0f
A capacity setting away from its default now shows as one muted line beside it on the capacity page, and the sentinel no longer files an issue for it. tsc --noEmit is clean, and the five test files I touched pass (75 tests). I didn't run the rest of the suite; the forge runs the whole check on push.
- Capacity page: beside each setting whose stored value differs from its boot default, the page shows "changed from <default> <N> days ago by <who> · Put back". The default shows as
autowhen empty, and the name and date are escaped. Put back posts to the existing reset action. The line stays until the value is back at default.CapacityRowgained an optionalchangedfield, filled by a newchangedOfinsrc/actions/capacity.ts. - Sentinel:
settingsAway, thekeptfield andsettingKeptare removed, andsentinelTickno longer treats a changed setting as a signal. Each pass now callscloseSettingFindings(insrc/crew/setting_finding.ts), which comments on every opensetting:finding with a pointer to/settings/capacityand closes it as done.isSettingFindingand the Keep and Put back handling on the asks page still work for closed ones. - Tests:
- New capacity page test: the line renders, escaped, for a changed setting and is gone once the value is back at default.
- New sentinel tests: a changed setting files nothing, and an open finding closes with the pointer.
- Rewritten to match: the old
settingsAwayassertions incapacity-cpus,capacity-crewand the sentinel suite. - In
asks.test.ts, the setting-card tests now plant a legacy finding by hand instead of callinghunt, since the sentinel no longer files one. The test "Keep closes the finding as kept, and it stays quiet" became "Keep closes the finding as kept", because staying quiet no longer depends on a recorded keep.
I left out any other reminder for a setting someone forgot about, so the line on the capacity page is the only trace. I also didn't remove the sentinel_kept table or the recorded-keep code, because the asks page still reads and writes them for legacy findings.
To try it, sign in as an admin, change a value on /settings/capacity, and the line appears beside it. Click Put back and it disappears.
Parked by the crew: the check failed ("the board's forge strip > the sentinel's line is the admin's alone, and absent before the first hunt") and the decider saw no point in another try
A capacity setting away from its default now shows as one muted line beside it on the capacity page, and the sentinel no longer files an issue for it.
tsc --noEmitis clean, and the five test files I touched pass (75 tests). I didn't run the rest of the suite; the forge runs the whole check on push.autowhen empty, and the name and date are escaped. Put back posts to the existing reset action. The line stays until the value is back at default.CapacityRowgained an optionalchangedfield, filled by a newchangedOfinsrc/actions/capacity.ts.settingsAway, thekeptfield andsettingKeptare removed, andsentinelTickno longer treats a changed setting as a signal. Each pass now callscloseSettingFindings(insrc/crew/setting_finding.ts), which comments on every opensetting:finding with a pointer to/settings/capacityand closes it as done.isSettingFindingand the Keep and Put back handling on the asks page still work for closed ones.settingsAwayassertions incapacity-cpus,capacity-crewand the sentinel suite.asks.test.ts, the setting-card tests now plant a legacy finding by hand instead of callinghunt, since the sentinel no longer files one. The test "Keep closes the finding as kept, and it stays quiet" became "Keep closes the finding as kept", because staying quiet no longer depends on a recorded keep.I left out any other reminder for a setting someone forgot about, so the line on the capacity page is the only trace. I also didn't remove the
sentinel_kepttable or the recorded-keep code, because the asks page still reads and writes them for legacy findings.To try it, sign in as an admin, change a value on
/settings/capacity, and the line appears beside it. Click Put back and it disappears.Closes #3269