1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-FileCopyrightText: 2026 Knitli Inc.
//
// SPDX-License-Identifier: LicenseRef-MarqueLicense-1.0
//! Build script for `marque-engine`.
//!
//! Selects the audit-record schema version emitted by `Engine::fix`.
//! The default is `marque-mvp-2` (the Phase-D schema — see
//! `specs/004-constraints-decoder-vocab/contracts/audit-record-v2.md`);
//! a build may downgrade to `marque-mvp-1` by exporting
//! `MARQUE_AUDIT_SCHEMA=marque-mvp-1` before building. A single build
//! emits exactly one schema version per FR-014 and R4 — mixing v1 and
//! v2 records in the same output stream is a downstream-parser hazard,
//! not a feature.
//!
//! The value is surfaced to downstream code via
//! `env!("MARQUE_AUDIT_SCHEMA")`. Rebuilds are triggered when the
//! env var changes.