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

Parked opened this
Closed without merging

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.

Notes

stopped parked by the crew deploy 91cdf0f

opened this

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 auto when 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. CapacityRow gained an optional changed field, filled by a new changedOf in src/actions/capacity.ts.
  • Sentinel: settingsAway, the kept field and settingKept are removed, and sentinelTick no longer treats a changed setting as a signal. Each pass now calls closeSettingFindings (in src/crew/setting_finding.ts), which comments on every open setting: finding with a pointer to /settings/capacity and closes it as done. isSettingFinding and 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 settingsAway assertions in capacity-cpus, capacity-crew and the sentinel suite.
    • In asks.test.ts, the setting-card tests now plant a legacy finding by hand instead of calling hunt, 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.

Closes #3269

commented

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 auto when 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. CapacityRow gained an optional changed field, filled by a new changedOf in src/actions/capacity.ts.
  • Sentinel: settingsAway, the kept field and settingKept are removed, and sentinelTick no longer treats a changed setting as a signal. Each pass now calls closeSettingFindings (in src/crew/setting_finding.ts), which comments on every open setting: finding with a pointer to /settings/capacity and closes it as done. isSettingFinding and 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 settingsAway assertions in capacity-cpus, capacity-crew and the sentinel suite.
    • In asks.test.ts, the setting-card tests now plant a legacy finding by hand instead of calling hunt, 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.

commented

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

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs