Skip to content

chore(ir): refresh vendored Trope IR schema to 0.2 (R-2026-07-07)#15

Merged
hyperpolymath merged 1 commit into
mainfrom
feat/vendored-ir-0.2
Jul 7, 2026
Merged

chore(ir): refresh vendored Trope IR schema to 0.2 (R-2026-07-07)#15
hyperpolymath merged 1 commit into
mainfrom
feat/vendored-ir-0.2

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Companion to hyperpolymath/trope-checker#32 (issue hyperpolymath/trope-checker#28, ADR 0004 — R-2026-07-07).

What

  • design/trope-ir.schema.json: refreshed byte-for-byte from the canonical trope-checker schema. version goes const "0.1"enum ["0.1", "0.2"]: IR 0.2 bundles the R-2026-07-07 semantic changes (A1 two-sided deceptive zeros, A2 chain retention order, A3 Attenuated(0)Present normalization at ingest) in one bump; the wire format is unchanged, and 0.1 documents stay accepted and grade identically under 0.2 semantics.
  • examples/*.ir.json: "version": "0.1""0.2" (examples track the current version).
  • build/just/trope.just: haec-examples now invokes the check script via {{justfile_directory()}} — older just releases (≤1.32, e.g. the 1.21.0 on the dev box) run imported recipes from the import file's own directory, so just check previously died with tests/check-examples.sh: No such file or directory. Pre-existing bug, surfaced while verifying this change.
  • No doc changes needed: README.adoc/design/elaboration.adoc reference the vendored schema without stating an IR version.

Verification

just check in a worktree with the trope-checker#32 branch as sibling (so the drift-guard and verdict round-trip actually run, against the rebuilt normalizing Idris2 checker):

ok   faithful-record.haec → faithful-record.ir.json (well-formed IR, expects p-sufficient)
ok   survey-collapse.haec → survey-collapse.ir.json (well-formed IR, expects p-insufficient)
ok   station-average.haec → station-average.ir.json (well-formed IR, expects p-sufficient)
ok   vendored design/trope-ir.schema.json matches the canonical checker schema
ok   round-trip faithful-record.ir.json → p-sufficient
ok   round-trip survey-collapse.ir.json → p-insufficient
ok   round-trip station-average.ir.json → p-sufficient

examples: all lower to valid Trope IR

No verdict flips. Note: on a machine whose sibling ../trope-checker checkout is still pre-#32, the local drift-guard will flag the vendored schema until #32 merges — merge order (#32 first) resolves it; CI is unaffected (no sibling checkout there).

🤖 Generated with Claude Code

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>
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 4aaa397 into main Jul 7, 2026
36 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant