From aa925e61fd344d7d0e9c9518465e61578d3bb231 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Wed, 25 Nov 2026 19:36:56 +0100 Subject: [PATCH 1/3] docs(skills): give each clause of a law statement its own check A clause that holds only through the model is unchecked: when the model shares a mistake with production, the model comparison passes. Each clause beyond the one the model serves gets its own comparison and a calibration that names that comparison's difference. Co-Authored-By: Claude Opus 5.5 --- .../oracles/skills/oracles-design/SKILL.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/oracles/skills/oracles-design/SKILL.md b/packages/oracles/skills/oracles-design/SKILL.md index 92aef206..000b3254 100644 --- a/packages/oracles/skills/oracles-design/SKILL.md +++ b/packages/oracles/skills/oracles-design/SKILL.md @@ -420,6 +420,25 @@ Techniques: [guide § Histories](../../docs/guide.md#histories). instead, and registration warns about it; that search goes away before the first release. A state's forced-probe controls bind the same way, through the property's `probeHistories`. + Give each clause of a law statement its own check. A statement that + joins promises with "and" makes one promise per clause. The comparison + with the model can serve one of them. Each other clause gets a + comparison of its own, against what that clause alone predicts, with its + own `difference`, and a calibration that breaks only that clause and + names that `difference`. A clause that holds only through the model is + unchecked: when the model shares a mistake with production, the model + comparison passes, and so does any calibration that names only the law. + For example, a law says that pruning "removes exactly what the transform + made unreferenced, keeps everything that was already unused, and with no + transform changes nothing". For + `const { handler = () => handler(), other } = config` and a no-op + transform, production removed `handler`, because its candidates counted + `handler`'s read of itself as a use. The model counted it too, predicted + the same removal, and the law passed. A calibration that drops a + declaration from a no-op history's output, with the difference "a no-op + transform changed the output", fails until the check compares a no-op + history's output with its input. With that comparison, the oracle fails + on production. - **Ownership.** Put the owned code on the property's `owns` list. An entry is a file (`src/x.ts`) or one function and its static call tree (`src/x.ts#run`, `src/x.ts#Class.method`). Own only what the laws cover. The From 86257d30e361ab4d63ee84c471e34fc40a66c1d8 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Wed, 25 Nov 2026 19:48:40 +0100 Subject: [PATCH 2/3] docs(skills): say which clause the model comparison checks The model comparison checks the clause that the model's rule states; a clause the model only implies needs its own comparison. Its calibration names the clause's difference, so only that comparison can reject it. Co-Authored-By: Claude Opus 5.5 --- packages/oracles/skills/oracles-design/SKILL.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/oracles/skills/oracles-design/SKILL.md b/packages/oracles/skills/oracles-design/SKILL.md index 000b3254..6d8f0fab 100644 --- a/packages/oracles/skills/oracles-design/SKILL.md +++ b/packages/oracles/skills/oracles-design/SKILL.md @@ -422,12 +422,14 @@ Techniques: [guide § Histories](../../docs/guide.md#histories). through the property's `probeHistories`. Give each clause of a law statement its own check. A statement that joins promises with "and" makes one promise per clause. The comparison - with the model can serve one of them. Each other clause gets a - comparison of its own, against what that clause alone predicts, with its - own `difference`, and a calibration that breaks only that clause and - names that `difference`. A clause that holds only through the model is + with the model checks the clause that the model's rule states. A clause + that the model only implies holds only through the model, and is unchecked: when the model shares a mistake with production, the model comparison passes, and so does any calibration that names only the law. + Give each such clause a comparison of its own, against what that clause + alone predicts, with its own `difference`. Then give it a calibration + that breaks that clause and names that `difference`, so that only the + clause's own comparison can reject it. For example, a law says that pruning "removes exactly what the transform made unreferenced, keeps everything that was already unused, and with no transform changes nothing". For From 816ef1921a65dda59ad9527e703047a99917dc94 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Wed, 25 Nov 2026 19:53:08 +0100 Subject: [PATCH 3/3] docs(skills): put a clause's comparison before the model comparison A wrong answer may break several clauses, and a check chained with ?? reports the first comparison that fails. Co-Authored-By: Claude Opus 5.5 --- packages/oracles/skills/oracles-design/SKILL.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/oracles/skills/oracles-design/SKILL.md b/packages/oracles/skills/oracles-design/SKILL.md index 6d8f0fab..5a15edb2 100644 --- a/packages/oracles/skills/oracles-design/SKILL.md +++ b/packages/oracles/skills/oracles-design/SKILL.md @@ -429,7 +429,10 @@ Techniques: [guide § Histories](../../docs/guide.md#histories). Give each such clause a comparison of its own, against what that clause alone predicts, with its own `difference`. Then give it a calibration that breaks that clause and names that `difference`, so that only the - clause's own comparison can reject it. + clause's own comparison can reject it. The wrong answer may break other + clauses too. A check chained with `??` reports the first comparison that + fails, so put the clause's comparison before the comparison with the + model. For example, a law says that pruning "removes exactly what the transform made unreferenced, keeps everything that was already unused, and with no transform changes nothing". For