Skip to content

test(DEN-3828): certify explicit docs alias cardinality peers - #8

Merged
ORESoftware merged 4 commits into
mainfrom
DEN-3828-api-docs-cardinality-canary-20260911
Sep 12, 2026
Merged

ORESoftware merged 4 commits into
mainfrom
DEN-3828-api-docs-cardinality-canary-20260911

Conversation

@ORESoftware

@ORESoftware ORESoftware commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Re-certify ORESoftware/api-docs#92 after its Rust suite exposed a semantic hole in the docs-discovery aliases and the TypeSpec model was repaired without weakening tuple order.

Exact immutable inputs

  • API Docs candidate: ORESoftware/api-docs@f6efa12a3ce5a01713464df6168082c289d85716;
  • canonical TJSV: ORESoftware/typespec-json-schema-validator@93dd73cb246a09b0a1c62d7192cc62ca6ecbe405.

Authority contract

TypeSpec and Draft 2020-12 JSON Schema remain independent, human-authored, first-class peers. TypeSpec is transpiled through the official JSON Schema emitter into generated Schema B solely as comparison evidence. The canary requires structural and differential convergence, zero unexplained findings, admissible non-editable Contract IR, and source immutability across all five API Docs contract pairs.

The docs-discovery TypeSpec authority remains an exact four-position tuple, preserving alias order. Because TypeSpec 1.15 does not permit @minItems/@maxItems on a tuple and its JSON-Schema emitter otherwise omits tuple cardinality, the TypeSpec authority now attaches those two JSON-Schema keywords through @TypeSpec.JsonSchema.extension. The independently authored JSON Schema carries the same minItems: 4 / maxItems: 4 constraint. The generated schema is still a witness, not an authority.

This keeps missing, duplicate/fifth, and reordered aliases fail-closed while retaining independent authorities.

Merge only after real stepful exact-head CI passes. Zero-step runs are non-evidence.

Tracking: DEN-3828 / DEN-3938.

@linear-code

linear-code Bot commented Sep 12, 2026

Copy link
Copy Markdown

DEN-3828

@ORESoftware
ORESoftware merged commit b2855c5 into main Sep 12, 2026
6 checks passed
@ORESoftware
ORESoftware deleted the DEN-3828-api-docs-cardinality-canary-20260911 branch September 12, 2026 02:52
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