Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ here.**
that reads packages, children, subtypes, attributes, `extends` and references, with the
canonical serializer. The loader freezes the tree when it finishes, and a frozen tree memoizes
its resolved reads (effective children, attrs and array-ness) for many concurrent readers, as
the other ports do. It passes `registry-conformance` byte for byte and 261 of the 526
metamodel fixtures; 254 of the rest are on a ledger that may only shrink (the validation passes,
merge warnings, the reporting short-name rule and `script.json` fixtures it does not run yet),
and 11 newer fixtures fail unlisted until those passes land.
the other ports do. It passes `registry-conformance` byte for byte and all 526 of the
metamodel fixtures, and runs every validation pass the TypeScript loader runs, in the same order
(the conformance ledger is empty and may only shrink).
While the port is in preview, a new fixture that fails in Rust and is not on the ledger prints a
warning and does not fail the lane; a fixture that passed and regresses still fails it, because
the ledger records how many fixtures must pass. Nothing is published and there is no codegen
or `cargo meta` command yet. Every load records how long each phase and each validation pass
took (`LoadResult::timings`; the `validate` module's ordered pass list is empty on purpose
until those passes land), and `load_bench` prints the per-phase and per-pass medians, with
took (`LoadResult::timings`; the `validate` module's ordered pass list holds the ported passes in
reference order), and `load_bench` prints the per-phase and per-pass medians, with
`--write-baseline` / `--baseline` to record and compare a run — a baseline is a record to
read, never a threshold, and the committed 20x baseline is a machine-local reference. A
`rust` lane runs `cargo fmt --check`, clippy, the tests and the `load_bench` table (record
Expand Down
25 changes: 12 additions & 13 deletions docs/CONFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,18 @@ regenerate with `ls -d fixtures/<corpus>/*/ | wc -l` for directory-shaped corpor
| [`fixtures/explorer-conformance/`](../fixtures/explorer-conformance/) (the `explorer.json` data spine: `meta export --effective` + `meta verify --format json` + the generated-file manifest in, one explorer document out) | 1 case (`shop`) | ✓ (the builder is TypeScript, and reads only port-neutral inputs) | — | — | — | — |

**Rust (preview, ADR-0065) is not a column yet.** The sixth port runs five corpora
today: `registry-conformance` (byte-identical manifest); the metamodel corpus, 261
of 526 green, 254 of the rest on `server/rust/metaobjects/tests/conformance-expected-failures.json`
(validation passes, merge warnings, the reporting short-name rule and the `script.json`
fixtures, none of them built yet) and 11 fixtures from the newer corpus failing unlisted
until those same validation passes land; `yaml-conformance`, 15 of 19 (the four on
`yaml-conformance-expected-failures.json` wait for the attribute-schema pass and the
ADR-0059 reference rules); `source-resolution-conformance` (all 28 cases); and
`naming-conformance` (all of it). Those ledgers may only shrink. While the port is in
preview, a new fixture that fails in Rust and is not on the ledger prints a warning and does
not fail the lane; it becomes a hard failure when the port leaves preview. A regression still
fails: the ledger's `minPassing` (261) is the number of fixtures known to pass, and the run
fails when fewer do. The column joins this table when the port leaves
preview.
today: `registry-conformance` (byte-identical manifest); the metamodel corpus, all 526
green, with every validation pass the TypeScript loader runs, in the same order, so
`server/rust/metaobjects/tests/conformance-expected-failures.json` is empty;
`yaml-conformance`, 18 of 19 (the one on `yaml-conformance-expected-failures.json`,
`yaml-ref-root-escape`, waits for the ADR-0059 root-level `::` reference rules, which are
reference resolution, not a validation pass); `source-resolution-conformance` (all 28
cases); and `naming-conformance` (all of it). Those ledgers may only shrink. While the
port is in preview, a new fixture that fails in Rust and is not on the ledger prints a
warning and does not fail the lane; it becomes a hard failure when the port leaves
preview. A regression still fails: the ledger's `minPassing` (526) is the number of
fixtures known to pass, and the run fails when fewer do. The column joins this table when
the port leaves preview.

A ✓ means the port runs the corpus green; an explicit `n / m` is used where a port
carries a ledgered divergence. The two ledgered YAML fixtures are documented
Expand Down
5 changes: 5 additions & 0 deletions server/rust/metaobjects/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ pub const ERR_PROVIDER_DUPLICATE_ID: &str = "ERR_PROVIDER_DUPLICATE_ID";
pub const ERR_PROVIDER_MISSING_DEPENDENCY: &str = "ERR_PROVIDER_MISSING_DEPENDENCY";
pub const ERR_PROVIDER_DEPENDENCY_CYCLE: &str = "ERR_PROVIDER_DEPENDENCY_CYCLE";
pub const ERR_OVERLAY_NO_TARGET: &str = "ERR_OVERLAY_NO_TARGET";
pub const ERR_MERGE_CONFLICT: &str = "ERR_MERGE_CONFLICT";
pub const WARN_DUPLICATE_DECLARATION: &str = "WARN_DUPLICATE_DECLARATION";
/// The code of a warning that carries only a message: the string-list channel every
/// port's loader wraps at its boundary.
pub const WARN_LEGACY: &str = "WARN_LEGACY";

pub const ERR_MALFORMED_YAML: &str = "ERR_MALFORMED_YAML";
pub const ERR_YAML_COERCION: &str = "ERR_YAML_COERCION";
Expand Down
Loading
Loading