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
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,51 @@

## Unreleased

Future changes will be listed here.

## v0.6.0 - 2026-12-01

OpenStatSpec `v0.6.0` is a minor release. It publishes a normative
conformance supplement with new supplement manifests and relaxes the Dolt
negative-zero boundary rule. Every published conformance manifest, request
and plan schema and `sql/schema-outline.sql` stays byte-identical, and no
profile contract or contract identifier changes (the profile documents only
gain a pointer to the supplement), so claims pinned to earlier releases stay
valid; the supplement binds claims that pin
`v0.6.0` or later. The rulings settle the implementation differences
collected in issue #27.

- Added the normative [Conformance Supplement 0.6](docs/conformance-supplement-0.6.md)
for Frontend 0.1 to 0.3, Plan 0.1 and 0.2, the in-place bindings, the
SAV/ZSAV 1.0 catalog and the SQL dialect profiles. It fixes
`request_schema_invalid` for invalid requests, comment and command
termination, name characters, reserved words and case-insensitive
matching, the Frontend 0.1 boundary, slash-separated `RECODE` and
`FORMATS` groups, `F8` as `F8.0`, the codes for unary minus, function
calls, arithmetic and string-number comparisons, replace plans whose
target is not their source, and `SYSMIS`-only `RECODE ... INTO` targets.
The `RECODE` diagnostics and the `LOWEST`/`HIGHEST` NULL endpoints noted in
`v0.5.1` become normative.
- SAV/ZSAV 1.0 catalog: `dataset.spec_version` is `"1.0"` and
`catalog_identity.schema_version` is `1`; the measurement level, role,
alignment, category-label and label-source vocabularies are text values;
attributes export in name order and compare by name; NaN becomes NULL only
under a declared reader policy and negative zero is never changed silently;
`physical_table_schema` is NULL for the catalog namespace and on SQLite.
- Added seven self-contained supplement manifests beside their published
manifests: Frontend 0.1 (16 cases), 0.2 (14) and 0.3 (14), Plan 0.1 (2) and
0.2 (2), In-Place 0.1 (1) and SAV/ZSAV 1.0 (9 fixtures, two generated by the
runner). The published manifests are unchanged.
- Dolt, MySQL and MariaDB may refuse negative zero before mutation as a
declared policy; the Dolt declaration validator accepts
`reject_before_mutation` for the `negative_zero` boundary case.
- Repository validation pins the SHA-256 of every published manifest and
schema and of `sql/schema-outline.sql`, and validates the supplements,
including their hashes and ruling coverage.
- The `openstatspec-specification` companion package goes to `0.2.0`: its
artifact validator adds `validate_published_artifacts` and reports
supplement case counts, and the Dolt validator accepts the negative-zero
refusal. It is released separately under a `package-v0.2.0` tag.
- Added an informative [Statscraft independent implementation record](docs/implementation-profiles/statscraft.md)
with its declared profiles, refusals and CI evidence at an exact development
commit and the `v0.5.1` pin. It changes no normative profile or conformance
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The first profile targets IBM SPSS Statistics system files. It maps one source d

The [SPSS SAV/ZSAV profile](docs/spss-sav-zsav-profile-1.0.md) defines normative conformance language, a canonical relational schema, generated fixtures, and reference-adapter coverage. The SQL layer includes independent SQLite, PostgreSQL, MySQL/MariaDB/InnoDB, and Dolt profiles. Implementations must pin the exact specification commit they test against. Release identifiers and immutable provenance belong in tagged releases and capability declarations rather than in this README.

The normative [Conformance Supplement 0.6](docs/conformance-supplement-0.6.md)
settles the implementation differences found by comparing independent
implementations. It is binding for claims that pin `v0.6.0` or later and adds
self-contained supplement manifests beside the published ones, which stay
unchanged; claims pinned to earlier releases stay valid.

The [server-version policy](sql/server-version-policy.md) covers the maintained
MySQL 8.4.x/9.7.x, MariaDB 11.4.x/11.8.x/12.3.x and PostgreSQL 17.x/18.x
series while requiring exact patch-version CI evidence. Microsoft SQL Server
Expand Down Expand Up @@ -73,6 +79,8 @@ released Plan 0.1/0.2 contracts and does not change SQL binding behavior.
- `sql/server-version-policy.md` — server release-series claims and exact reference-CI targets.
- `docs/mssql-dialect-roadmap.md` — unsupported future SQL Server dialect plan.

- `docs/conformance-supplement-0.6.md` and `conformance/*-supplement-1.json`:
normative rulings and supplement cases for claims that pin `v0.6.0` or later.
- `docs/architecture.md` — model boundary and catalog outline.
- `docs/spss-profile.md` — SPSS source-faithful mapping rules.
- [Python / pinned pyspssio implementation profile](docs/implementation-profiles/python-pyspssio-0.5.1.md) — Python adapter pyspssio capability boundary; it does not relax the normative SAV/ZSAV profile.
Expand Down
17 changes: 14 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

This is a working to-do list for OpenStatSpec. Items below describe intended work, not promises of a release date or expanded scope.

## Current status (2026-11-21)

## Current status (2026-12-01)

- Specification `v0.6.0` is a minor release over `v0.5.1`: the normative
[Conformance Supplement 0.6](docs/conformance-supplement-0.6.md) and its
supplement manifests settle the implementation differences of issue #27,
and Dolt may refuse negative zero as a declared policy. Published
manifests and schemas are unchanged, so earlier pins remain valid. Python
`0.10.0`, PHP `0.9.0` and the next Statscraft minor release are planned to
pin `v0.6.0`; the companion package goes to `0.2.0`.
- Specification `v0.5.1` is a documentation patch over `v0.5.0`: informative
notes where the published implementations agree, and release bookkeeping.
No contract or artifact changed, so `v0.5.0` pins remain valid. Open
Expand Down Expand Up @@ -71,7 +78,7 @@ Prerequisite: the core mapping and canonical fixtures are stable enough to test
and fixtures.
- [x] Define adapter conformance guidance; each adapter repository owns its runtime CI and evidence.
- [x] Define versioning and compatibility guidance for the specification and profiles.
- [x] Publish release notes and tagged specification releases; `v0.5.1` is the
- [x] Publish release notes and tagged specification releases; `v0.6.0` is the
current public specification release and is immutable.
- [ ] Expand implementation, dialect-profile, and adoption documentation from real adapter experience.
The [Statscraft record](docs/implementation-profiles/statscraft.md) documents
Expand Down Expand Up @@ -179,6 +186,10 @@ follows and does not block specification publication.
11. [x] Published documentation patch release `v0.5.1` with informative
clarifications found by an independent implementation; no normative
contract or conformance artifact changed.
12. [x] Prepared minor release `v0.6.0`: the normative conformance supplement,
seven supplement manifests and the Dolt negative-zero relaxation, with the
published manifests and schemas pinned unchanged. Adapter adoption follows
the tag and is gated separately.

Optional workflow conformance and future frontend generations remain downstream
implementation work. Frontend 0.3 has its own completed adapter evidence in the
Expand Down
60 changes: 60 additions & 0 deletions conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,66 @@ The `preflight-failure` source `fixtures/preflight-too-wide.sav` is not
committed: as [`fixtures/README.md`](fixtures/README.md) states, the runner
generates it with one more variable than the target profile permits.

## Supplement manifests

The files named `<base>-supplement-1.json` hold the conformance cases of the
normative [Conformance Supplement 0.6](../docs/conformance-supplement-0.6.md).
They apply to implementation claims that pin `v0.6.0` or later, in addition
to the published manifest `<base>.json`, which stays byte-identical.

- `spss-syntax-frontend-0.1-supplement-1.json` (16 cases),
`spss-syntax-frontend-0.2-supplement-1.json` (14) and
`spss-syntax-frontend-0.3-supplement-1.json` (14);
- `transformation-plan-0.1-supplement-1.json` (2) and
`transformation-plan-0.2-supplement-1.json` (2);
- `in-place-transformation-0.1-supplement-1.json` (1); and
- `spss-sav-zsav-1.0-supplement-1.json` (9 fixtures).

A supplement manifest uses the top-level keys and the case shape of its base
manifest, so a runner of the base manifest can run it. It adds:

- `supplement_to`, the file name of the base manifest, and
`supplement_document`, the path of the supplement document;
- `rulings` on every case or fixture: the rulings it covers, keyed as in the
traceability table of the supplement document. A runner may ignore it.

A supplement manifest is self-contained. It has no `inherited_manifests`, and
a successful frontend case gives its plan inline as `expected_plan` (or as
`expected_plan_0_1` in the 0.2 and 0.3 supplements), never as a reference to a
case of another manifest.

Every manifest request is schema-valid, with one exception: a frontend
supplement case that expects `request_schema_invalid` may give a request that
violates the request schema. Such a case may also give a schema-valid request
that declares two names equal case-insensitively, or a numeric value label on
a string variable.

The In-Place 0.1 supplement case states the created target in `after`:
`created_target`, `created_target_storage_kind`,
`created_target_all_system_missing` and `audit_physical_table_schema`, the
value the compact audit copies from the `dataset` row.

The SAV/ZSAV supplement keeps the fixture shape of `spss-sav-zsav-1.0.json`.
Its new `expects` values and `expected_catalog` keys are:

- `dataset_spec_version` with `expected_catalog.dataset.spec_version`, and
`catalog_schema_version` with `expected_catalog.catalog_identity`;
- `physical_table_schema_rule`: `dataset.physical_table_schema` follows the
supplement rule for the SQL profile under test;
- `measurement_level_vocabulary`, `variable_role_vocabulary` and
`display_alignment_vocabulary` with `expected_catalog.variables` (only the
columns that the fixture sets explicitly are listed), and
`category_label_behavior_vocabulary` and `label_source_vocabulary` with
`expected_catalog.multiple_response_sets`;
- `attribute_export_order` with `expected_catalog.dataset_attribute_export_order`
and `variable_attribute_export_order`, and `attribute_comparison_by_name`;
- `lowest_highest_null_endpoints` with `expected_catalog.missing_rules`; and
- `negative_zero_preserved_refused_or_reported` and
`nan_preserved_refused_or_declared_null` for the runner-generated fixtures
`fixtures/negative-zero.sav` and `fixtures/nan.sav`, which, like the
preflight fixture, are not committed: [`fixtures/README.md`](fixtures/README.md)
states how the runner generates them.

## SQL Transformation Workflow manifest

`sql-transformation-workflow-0.1.json` gives the `hash_profile`, input
Expand Down
13 changes: 13 additions & 0 deletions conformance/fixtures/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ SAV file.

The preflight fixture is profile-specific: the conformance runner must generate
it with one more variable than the target profile permits.

The supplement manifest `../spss-sav-zsav-1.0-supplement-1.json` names two more
fixtures that are not committed. The runner generates each with any SAV writer
that keeps the exact binary64 bits, as one numeric variable `value` (format
`F8.2`) and three cases in this order:

- `negative-zero.sav`: bits `0000000000000000` (positive zero),
`8000000000000000` (negative zero) and `3ff0000000000000` (1).
- `nan.sav`: bits `3ff0000000000000` (1), `7ff8000000000000` (a quiet NaN)
and `4000000000000000` (2).

The expected outcomes are those of the special numeric value rules in
[`../../docs/conformance-supplement-0.6.md`](../../docs/conformance-supplement-0.6.md).
66 changes: 66 additions & 0 deletions conformance/in-place-transformation-0.1-supplement-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"manifest_version": "0.1",
"profile": "OpenStatSpec In-Place Transformation Binding 0.1 conformance supplement 1",
"contract": "openstatspec-in-place-transformation-v0.1",
"supplement_to": "in-place-transformation-0.1.json",
"supplement_document": "../docs/conformance-supplement-0.6.md",
"cases": [
{
"id": "sqlite-sysmis-only-recode-creates-numeric-target",
"rulings": [
"18",
"25"
],
"database_profile": "sqlite",
"source_text": "RECODE q1 (1 = SYSMIS) INTO r.",
"before": {
"dataset_id": "11111111-1111-4111-8111-111111111111",
"physical_table_schema": null,
"physical_table_name": "data_survey",
"dataset_count": 1,
"persistent_data_table_count": 1
},
"after": {
"dataset_id": "11111111-1111-4111-8111-111111111111",
"physical_table_schema": null,
"physical_table_name": "data_survey",
"dataset_count": 1,
"persistent_data_table_count": 1,
"created_target": "r",
"created_target_storage_kind": "numeric",
"created_target_all_system_missing": true,
"audit_physical_table_schema": null
},
"forbidden_artifacts": [
"derived_dataset_row",
"persistent_output_table",
"full_table_copy",
"staging_dataset",
"staging_relation",
"snapshot_table",
"rollback_table",
"dataset_version_row",
"retirement_or_recovery_row",
"temporary_object_residue"
],
"required_audit_fields": [
"apply_id",
"contract_id",
"database_profile",
"dataset_id",
"physical_table_schema",
"physical_table_name",
"plan_hash",
"source_hash",
"actor",
"status",
"dolt_branch",
"dolt_head_before",
"dolt_head_after",
"operation_count",
"started_at",
"completed_at"
]
}
]
}
Loading