From 259217aae442cb143fa3fd28f9c3cce5f3c8c596 Mon Sep 17 00:00:00 2001 From: tobiadefami Date: Fri, 30 Oct 2026 16:38:57 +0100 Subject: [PATCH 1/2] Code review: measure the expected values a review proposes Excel's documentation names the cases to check, not their results, and HyperFormula's own output shows what the code does. A finding that proposes a test case states its expected value only if it was measured in Excel. Co-Authored-By: Claude Opus 5.5 --- dev-docs/CODE-REVIEW.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-docs/CODE-REVIEW.md b/dev-docs/CODE-REVIEW.md index d5c824406..63a50c1df 100644 --- a/dev-docs/CODE-REVIEW.md +++ b/dev-docs/CODE-REVIEW.md @@ -9,7 +9,7 @@ Every pull request is reviewed by a teammate before it is merged. This page says - **Questions, not a pass/fail form.** Many points below are judgement calls. If you accept a trade-off, say so in the review, with the reason. - **Skip consciously.** Not every section applies to every pull request. Know which ones you skipped, and why. - **Behaviour and tests first.** Review them at least as carefully as the code. Running the change — a formula in a cell, a small demo — often says more than reading the diff. -- **Review against a source of truth:** the task and its spec, Excel's documentation, the upstream README, or the process the change follows. Without one, a review only checks whether the code looks good. +- **Review against a source of truth:** the task and its spec, Excel's documentation, the upstream README, or the process the change follows. Without one, a review only checks whether the code looks good. Excel's documentation tells you what to check, not what the result is: where it states a result, measure it in Excel before relying on it. - **Fix the tooling.** When a linter or CI could catch a problem, change the tooling instead of commenting on the same problem in every pull request. ## The questions to ask @@ -108,3 +108,4 @@ Each line names the page that owns the rules and when it applies. Where reviews - **Comments stand on their own.** The author should not need to open the spec to understand them. Explain why, so the author — human or agent — learns the rule, not only the fix. - **Use `suggestion` blocks** for small textual changes: changelog, docs, naming. - **Every comment you post is yours.** Verify each finding yourself, including the ones an AI review produced. Never paste raw AI output into a pull request. +- **Expected values come from Excel.** A finding that proposes a test case states its expected value only if that value was measured in Excel ([Verifying expected values](../hyperformula/dev-docs/EXCEL-COMPATIBILITY.md#verifying-expected-values)). HyperFormula's own result shows what the code does, not what it should do. If the value has not been measured, ask for the case to be measured and tested, without stating the value. From d427e1e762b001e364183f4b92a53620bf9ef02e Mon Sep 17 00:00:00 2001 From: Oluwatobi Adefami <48369656+Tobiadefami@users.noreply.github.com> Date: Mon, 2 Nov 2026 23:36:35 +0100 Subject: [PATCH 2/2] Update dev-docs/CODE-REVIEW.md Co-authored-by: marcin-kordas-hoc --- dev-docs/CODE-REVIEW.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-docs/CODE-REVIEW.md b/dev-docs/CODE-REVIEW.md index 63a50c1df..defba8601 100644 --- a/dev-docs/CODE-REVIEW.md +++ b/dev-docs/CODE-REVIEW.md @@ -108,4 +108,4 @@ Each line names the page that owns the rules and when it applies. Where reviews - **Comments stand on their own.** The author should not need to open the spec to understand them. Explain why, so the author — human or agent — learns the rule, not only the fix. - **Use `suggestion` blocks** for small textual changes: changelog, docs, naming. - **Every comment you post is yours.** Verify each finding yourself, including the ones an AI review produced. Never paste raw AI output into a pull request. -- **Expected values come from Excel.** A finding that proposes a test case states its expected value only if that value was measured in Excel ([Verifying expected values](../hyperformula/dev-docs/EXCEL-COMPATIBILITY.md#verifying-expected-values)). HyperFormula's own result shows what the code does, not what it should do. If the value has not been measured, ask for the case to be measured and tested, without stating the value. +- **Expected values come from Excel.** A finding that proposes a test case for a result Excel also computes states its expected value only if that value was measured in Excel ([Verifying expected values](../hyperformula/dev-docs/EXCEL-COMPATIBILITY.md#verifying-expected-values)). HyperFormula's own result shows what the code does, not what it should do. If the value has not been measured, ask for the case to be measured and tested, without stating the value. For behaviour Excel does not have, the expected value comes from the spec or the documentation.