Skip to content

Commit 4aaa397

Browse files
chore(ir): refresh vendored Trope IR schema to 0.2 (R-2026-07-07) (#15)
Companion to trope-checker#32 (issue trope-checker#28, ADR 0004): - design/trope-ir.schema.json: refreshed byte-for-byte from the canonical trope-checker schema — version const "0.1" -> enum ["0.1","0.2"] (R-2026-07-07: A1 two-sided deceptive zeros, A2 chain retention order, A3 Attenuated(0)->Present normalization at ingest; wire format unchanged, verdict semantics changed, hence one bump) - examples/*.ir.json: version "0.1" -> "0.2" (0.1 stays accepted by the checkers; examples track the current version) - build/just/trope.just: haec-examples now invokes the check script via {{justfile_directory()}} so `just check` works on older just releases (<=1.32 run imported recipes from the import's own directory) `just check` passes: examples well-formed, vendored schema matches the canonical checker schema, and the verdict round-trip through the rebuilt (normalizing) Idris2 reference checker is unchanged for all examples. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 62af28c commit 4aaa397

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

build/just/trope.just

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
check: haec-examples
1010

1111
haec-examples:
12-
bash tests/check-examples.sh
12+
# justfile_directory() so the recipe is cwd-robust: older just (≤1.32) runs
13+
# imported recipes from THIS file's directory, newer just from the root.
14+
bash {{justfile_directory()}}/tests/check-examples.sh

design/trope-ir.schema.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"properties": {
1111
"$schema": { "type": "string" },
1212
"$comment": { "type": "string" },
13-
"version": { "type": "string", "const": "0.1" },
13+
"version": {
14+
"type": "string",
15+
"enum": ["0.1", "0.2"],
16+
"$comment": "0.2 is current (R-2026-07-07, ADR 0004: A1 two-sided deceptive zeros, A2 chain retention order, A3 Attenuated(0)->Present normalization at ingest — verdict semantics changed, wire format unchanged). 0.1 documents remain accepted and are normalized and graded identically under 0.2 semantics."
17+
},
1418
"profile": {
1519
"type": "string",
1620
"const": "prevent",
@@ -31,7 +35,7 @@
3135
"fieldName": { "enum": ["quality", "bearer", "context", "record"] },
3236

3337
"delta": {
34-
"$comment": "A fidelity element of N union {inf, top}. Finite delta is tropical (min-plus) quantified loss; inf is total quantified loss; top is loss of unknown amount.",
38+
"$comment": "A fidelity element of N union {inf, top}. Finite delta is tropical (min-plus) quantified loss; inf is total quantified loss; top is loss of unknown amount. Attenuated(0) is wire-legal and is normalized to Present at IR ingest (R-2026-07-07-03, A3): validators rewrite it before grading.",
3539
"oneOf": [
3640
{ "type": "integer", "minimum": 0 },
3741
{ "type": "string", "enum": ["inf", "top"] }

examples/faithful-record.ir.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://github.com/hyperpolymath/trope-checker/schemas/trope-ir.schema.json",
33
"$comment": "SPDX-FileCopyrightText: © 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>. SPDX-License-Identifier: MPL-2.0",
4-
"version": "0.1",
4+
"version": "0.2",
55
"profile": "prevent",
66
"nodes": [
77
{

examples/station-average.ir.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://github.com/hyperpolymath/trope-checker/schemas/trope-ir.schema.json",
33
"$comment": "SPDX-FileCopyrightText: © 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>. SPDX-License-Identifier: MPL-2.0",
4-
"version": "0.1",
4+
"version": "0.2",
55
"profile": "prevent",
66
"nodes": [
77
{

examples/survey-collapse.ir.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://github.com/hyperpolymath/trope-checker/schemas/trope-ir.schema.json",
33
"$comment": "SPDX-FileCopyrightText: © 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>. SPDX-License-Identifier: MPL-2.0",
4-
"version": "0.1",
4+
"version": "0.2",
55
"profile": "prevent",
66
"nodes": [
77
{

0 commit comments

Comments
 (0)