From 7069fd1770ceb1807a83aba45a8d9497ff531512 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 04:53:16 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20drop=20the=20restated=20tim?= =?UTF-8?q?estamp=20and=20test=20rules=20and=20the=20repeated=20pointer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/stability-reviewer.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index 5cd6420c..789a6402 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -47,11 +47,11 @@ Before judging how well code works, judge whether it should exist. Every line is - Growth whose whole fix is deletion — unasked additions, dead code, speculative abstraction, an unjustified dependency — breaks KISS: a 🔴. A "could be smaller" rewrite is a 🟡. ### 3. Ambiguity & Implicit State -Catch behavior that is unclear or under-specified — "building in ambiguousness." Cross-check the technical principles. +Catch behavior that is unclear or under-specified — "building in ambiguousness." - Is stringly-typed or loosely-typed data used where an enum/DTO would make invalid states unrepresentable? - Is input parsed into a strict DTO at the boundary, or passed down as raw strings to be validated deep inside? - Past the boundary, do types carry the proof? Re-validating at every layer what the type already guarantees is noise that buries the real invariants — deletion-worthy, not defensive. -- Is nullability, error semantics, or units ambiguous or undocumented? (timestamps: full ISO datetime in UTC?) +- Is nullability, error semantics, or units ambiguous or undocumented? - Does behavior depend on undocumented assumptions or implicit state instead of an explicit state machine? ### 4. Error Handling & Resilience @@ -124,7 +124,7 @@ Every PR gets at least this sweep. - Was a test deleted while the behaviour it pinned remains? Flag it; restore the test. - Were tests and implementation changed together in a way that could mask a regression — e.g. an assertion weakened to make a test pass? Flag it; these should be separate changes. - Would each test fail if the behavior regressed? Watch for assertion-free tests, tautological asserts, and mocks so broad the test exercises the mock instead of the code. -- Tests are code too: prefer extending an existing test with an assertion over adding a near-duplicate; flag overlapping tests that pin the same behavior twice, and tests of framework behavior or trivial pass-throughs — maintenance cost without protection. +- Tests are code too: flag overlapping tests that pin the same behavior twice, and tests of framework behavior or trivial pass-throughs — maintenance cost without protection. - Are there untestable side effects that should be refactored?