docs(production): standardiserad produktionsberedskap och gap-analys

Lägger docs/production-readiness.md och siax/production-gaps.json enligt SIAX Master Definition of Done. Underlag: git-, kod- och live-evidens 2026-11-11. Nivån är evidensbaserad, inte ett leveransgodkännande.
This commit is contained in:
2026-11-10 03:07:36 +01:00
parent fb072d47c7
commit a4189333af
959 changed files with 5 additions and 115771 deletions
-37
View File
@@ -1,37 +0,0 @@
import { describe, expect, it } from 'vitest';
import {
METRICFLOW_FIRST_OPEN_SOURCE_VERSION,
METRICFLOW_PINNED_VERSION,
} from '../../src/analytics/metrics/semantic-provider';
/**
* BI-P147. MetricFlow below 0.209.0 is Business Source License 1.1 —
* source-available, NOT open source, and restricted for production use until
* its change date. dbt Labs relicensed to Apache-2.0 at 0.209.0, verified
* against the LICENSE file at each git tag on 2026-09-07 (PyPI reports no
* licence field for either version, so a metadata check finds nothing).
*
* This guards a boundary an ordinary "pin the version we tested" change would
* cross without noticing: the previous pin, 0.208.1, was one patch below it.
*/
const cmp = (a: string, b: string): number => {
const pa = a.split('.').map(Number);
const pb = b.split('.').map(Number);
for (let i = 0; i < Math.max(pa.length, pb.length); i += 1) {
const d = (pa[i] ?? 0) - (pb[i] ?? 0);
if (d !== 0) return d;
}
return 0;
};
describe('BI-P147 MetricFlow licence boundary', () => {
it('pins a version at or above the Apache-2.0 boundary', () => {
expect(cmp(METRICFLOW_PINNED_VERSION, METRICFLOW_FIRST_OPEN_SOURCE_VERSION)).toBeGreaterThanOrEqual(0);
});
it('rejects every known BUSL version — the comparison genuinely discriminates', () => {
for (const busl of ['0.207.3', '0.208.0', '0.208.1']) {
expect(cmp(busl, METRICFLOW_FIRST_OPEN_SOURCE_VERSION)).toBeLessThan(0);
}
});
});